From: Ken Hornstein Date: Tue, 31 Dec 2013 05:13:21 +0000 (-0500) Subject: Change fmttest to use litputs() on str and output buffers during tracing. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1c08be1b270cce9c287aa3c83454969cdec5b7de?hp=0f6e321fb72a1100f9b5b6d4391c9d2229b9406f Change fmttest to use litputs() on str and output buffers during tracing. --- 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); }