From d0651f9bd7700c3db70733e68fd8ef761e67c3a6 Mon Sep 17 00:00:00 2001
From: wlott <wlott>
Date: Fri, 11 Feb 1994 14:47:28 +0000
Subject: [PATCH] Fixed %report-times to not choak if any of the function names
 are not symbols (e.g. setf functions).

---
 code/profile.lisp | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/code/profile.lisp b/code/profile.lisp
index ffa04d79b..29b6acb18 100644
--- a/code/profile.lisp
+++ b/code/profile.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/profile.lisp,v 1.12 1994/02/10 21:25:38 wlott Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/profile.lisp,v 1.13 1994/02/11 14:47:28 wlott Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -493,7 +493,17 @@
     (when no-call
       (format *trace-output*
 	      "~%These functions were not called:~%~{~<~%~:; ~S~>~}~%"
-	      (sort no-call #'string< :key #'symbol-name)))
+	      (sort no-call #'string<
+		    :key #'(lambda (n)
+			     (cond ((symbolp n)
+				    (symbol-name n))
+				   ((and (listp n)
+					 (eq (car n) 'setf)
+					 (consp (cdr n))
+					 (symbolp (cadr n)))
+				    (symbol-name (cadr n)))
+				   (t
+				    (princ-to-string n)))))))
     (values)))
 
 
-- 
GitLab