diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-14 18:21:27 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-14 18:21:27 +0200 |
commit | 734fe93caf8107983c1099903aac050286598cda (patch) | |
tree | d5094cde5af26c8ad68bf716068819832b857ffe | |
parent | 4678fe0d2acaad8698ee2f6d90f83b5335a7eb3c (diff) | |
download | mupdf-734fe93caf8107983c1099903aac050286598cda.tar.xz |
print trailing newline and flush output when debugging objects.
-rw-r--r-- | stream/obj_print.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/obj_print.c b/stream/obj_print.c index 8d7ffd55..fcbebffd 100644 --- a/stream/obj_print.c +++ b/stream/obj_print.c @@ -315,6 +315,7 @@ void fz_debugobj(fz_obj *obj) { char buf[1024]; + char newline = '\n'; char *ptr; int n; @@ -333,5 +334,8 @@ fz_debugobj(fz_obj *obj) fwrite(ptr, 1, n, stdout); fz_free(ptr); } + + fwrite(&newline, 1, 1, stdout); + fflush(stdout); } |