From 91a136ea9bfbffe691540becd67a4efba5cec16d Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 6 Jan 2018 17:32:19 +0100 Subject: improve error messages --- rdd.c | 4 ++-- 1 file 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"); -- cgit 1.4.1