threads / patch / 19018

patchtest-genrandom: Add newline to usage string

Subject: [PATCH] test-genrandom: Add newline to usage string

## tl;dr

One message between Apr 23, 2009 and Apr 23, 2009. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Stephen Boyd· Apr 23, 2009, 07:25 UTC · lore

A minor fix to place the terminal input on a new line if test-genrandom is run with no arguments.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 test-genrandom.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to test-genrandom.c +1 −1
diff --git a/test-genrandom.c b/test-genrandom.c
index 8cefe6c..b81ad67 100644
--- a/test-genrandom.c
+++ b/test-genrandom.c
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
 	unsigned char *c;
 
 	if (argc < 2 || argc > 3) {
-		fprintf( stderr, "Usage: %s <seed_string> [<size>]", argv[0]);
+		fprintf( stderr, "Usage: %s <seed_string> [<size>]\n", argv[0]);
 		return 1;
 	}
 
-- 
1.6.2.3

← back to recent threads