]> andersk Git - libyaml.git/blobdiff - tests/run-emitter.c
Fix -Wformat compilation errors in tests
[libyaml.git] / tests / run-emitter.c
index 73ae9a5f79932f1ec0147d5d0c8652e848523a67..fee292252e9ddca59fd53bdec16abef43fb2a3b0 100644 (file)
@@ -205,8 +205,8 @@ int print_output(char *name, unsigned char *buffer, size_t size, int count)
         if (feof(file)) break;
     }
     fclose(file);
-    printf("#### (length: %d)\n", total_size);
-    printf("OUTPUT:\n%s#### (length: %d)\n", buffer, size);
+    printf("#### (length: %zd)\n", total_size);
+    printf("OUTPUT:\n%s#### (length: %zd)\n", buffer, size);
     return 0;
 }
 
@@ -319,7 +319,7 @@ main(int argc, char *argv[])
             yaml_event_delete(events+k);
         }
 
-        printf("PASSED (length: %d)\n", written);
+        printf("PASSED (length: %zd)\n", written);
         print_output(argv[number], buffer, written, -1);
     }
 
This page took 0.027524 seconds and 4 git commands to generate.