aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xChangeLog5
-rw-r--r--debug.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 57d198b2..341d7f01 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-10 Arnold D. Robbins <arnold@skeeve.com>
+
+ * debug.c (print_instruction): For Op_comment, use print_func
+ instead of fprintf to print the comment type.
+
2018-10-01 Nelson H.F. Beebe <beebe@math.utah.edu>
* custom.h (__builtin_expect): Define for non-GNU compilers.
diff --git a/debug.c b/debug.c
index 1ca93cc4..b24a8db6 100644
--- a/debug.c
+++ b/debug.c
@@ -4032,7 +4032,7 @@ print_instruction(INSTRUCTION *pc, Func_print print_func, FILE *fp, int in_dump)
case Op_comment:
print_memory(pc->memory, func, print_func, fp);
- fprintf(fp, " [comment_type = %s]\n",
+ print_func(fp, " [comment_type = %s]\n",
pc->memory->comment_type == EOL_COMMENT ?
"EOL" : "FULL");
break;