]> diplodocus.org Git - nmh/commitdiff
Put, rather than print, single characters.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:38:04 +0000 (23:38 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 19 Oct 2016 22:38:04 +0000 (23:38 +0100)
uip/fmttest.c

index 8c8501972b075559550baa456606d71d33ea4a81..0b32a0412b1199e0610d4c31ce704d57d49773d2 100644 (file)
@@ -741,14 +741,14 @@ test_trace(void *context, struct format *fmt, int num, char *str,
 
     if (str != ctx->str) {
        if (changed++)
 
     if (str != ctx->str) {
        if (changed++)
-           printf(" ");
+            putchar(' ');
        printf("str=");
        litputs(str);
        ctx->str = str;
     }
 
     if (changed)
        printf("str=");
        litputs(str);
        ctx->str = str;
     }
 
     if (changed)
-       printf("\n");
+        putchar('\n');
 
     if (strcmp(outbuf, ctx->outbuf) != 0) {
        printf("outbuf=");
 
     if (strcmp(outbuf, ctx->outbuf) != 0) {
        printf("outbuf=");