]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[datagen] Remove extra newline printed
authorNick Terrell <terrelln@fb.com>
Fri, 21 Jan 2022 06:46:45 +0000 (22:46 -0800)
committerNick Terrell <terrelln@fb.com>
Thu, 27 Jan 2022 21:56:59 +0000 (13:56 -0800)
`datagen` was printing a `\n` even when it had no other output. Raise
the output level for the final `\n` to the minimum output level used.

This minor bug was caught by the new testing framework.

tests/datagencli.c

index ecc05f95f19c8dc0636bf1af5ffa3e27dbe990aa..7300fdb766b013a4b160e2606e404e075a2d63d2 100644 (file)
@@ -124,7 +124,7 @@ int main(int argc, const char** argv)
     DISPLAYLEVEL(3, "Seed = %u \n", (unsigned)seed);
 
     RDG_genStdout(size, (double)probaU32/100, litProba, seed);
-    DISPLAYLEVEL(1, "\n");
+    DISPLAYLEVEL(3, "\n");
 
     return 0;
 }