about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-01-06 17:32:19 +0100
committerLeah Neukirchen <leah@vuxu.org>2018-01-06 17:32:19 +0100
commit91a136ea9bfbffe691540becd67a4efba5cec16d (patch)
tree1ee37634144daeba39c75950c26b025b09d03153
parentac29841679a50afe3b56a9c82e36ff096bb144f1 (diff)
downloadrdd-91a136ea9bfbffe691540becd67a4efba5cec16d.tar.gz
rdd-91a136ea9bfbffe691540becd67a4efba5cec16d.tar.xz
rdd-91a136ea9bfbffe691540becd67a4efba5cec16d.zip
improve error messages v0.9
-rw-r--r--rdd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdd.c b/rdd.c
index c85380e..c1ed8d6 100644
--- a/rdd.c
+++ b/rdd.c
@@ -7,7 +7,7 @@
 
 #include "sosemanuk.h"
 
-#define fail(i, s) write(2, s, (sizeof s)-1), exit(i);
+#define fail(i, s) write(2, "rdd: " s, 5+(sizeof s)-1), exit(i);
 
 int
 main(int argc, char *argv[])
@@ -34,7 +34,7 @@ usage:
 		goto usage;
 
 	if (isatty(1))
-		fail(5, "cowardly not dumping to tty\n");
+		fail(5, "cowardly not dumping random data to tty\n");
 
 	if ((fd = open(src, O_RDONLY)) < 0)
 		fail(2, "failed to open random source\n");