From 1c08be1b270cce9c287aa3c83454969cdec5b7de Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 31 Dec 2013 00:13:21 -0500 Subject: [PATCH] Change fmttest to use litputs() on str and output buffers during tracing. --- uip/fmttest.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/uip/fmttest.c b/uip/fmttest.c index 2bcebd7a..f08583e0 100644 --- a/uip/fmttest.c +++ b/uip/fmttest.c @@ -761,7 +761,8 @@ test_trace(void *context, struct format *fmt, int num, char *str, char *outbuf) if (str != ctx->str) { if (changed++) printf(" "); - printf("str=\"%s\"", str ? str : "NULL"); + printf("str="); + litputs(str); ctx->str = str; } @@ -769,7 +770,9 @@ test_trace(void *context, struct format *fmt, int num, char *str, char *outbuf) printf("\n"); if (strcmp(outbuf, ctx->outbuf) != 0) { - printf("outbuf=\"%s\"\n", outbuf); + printf("outbuf="); + litputs(outbuf); + putchar('\n'); free(ctx->outbuf); ctx->outbuf = getcpy(outbuf); } -- 2.56.0