Disassemble: print the size into the right stream.
authorStas Boukarev <stassats@gmail.com>
Mon, 15 Apr 2013 19:50:12 +0000 (23:50 +0400)
committerStas Boukarev <stassats@gmail.com>
Mon, 15 Apr 2013 19:50:12 +0000 (23:50 +0400)
Print the newly introduced size information to the provided stream,
not to *standard-output*.
Reported by Jan Moringen.

src/compiler/target-disassem.lisp

index 5473481..dc23874 100644 (file)
            (type stream stream)
            (type disassem-state dstate))
   (unless (null segments)
-    (format t "~&; Size: ~a bytes"
+    (format stream "~&; Size: ~a bytes"
             (reduce #'+ segments :key #'seg-length))
     (let ((first (car segments))
           (last (car (last segments))))