aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElie De Brauwer <eliedebrauwer@gmail.com>2012-07-05 20:11:40 +0200
committerElie De Brauwer <eliedebrauwer@gmail.com>2012-07-05 20:11:40 +0200
commitc2f62a97261dd471456b72ada279d3a14360a5cd (patch)
tree5c6dff42e6e5c788e100a87561dcee949f70b36e
parent0606e2a29c64d7eed3902706fbb78b399a1b3e07 (diff)
downloadtoybox-c2f62a97261dd471456b72ada279d3a14360a5cd.tar.gz
Put cmp.c EOF notice on stderr
-rw-r--r--toys/cmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/cmp.c b/toys/cmp.c
index 42325a17..0afca381 100644
--- a/toys/cmp.c
+++ b/toys/cmp.c
@@ -73,7 +73,7 @@ void do_cmp(int fd, char *name)
}
if (len1 != len2) {
if (!(toys.optflags & FLAG_s)) {
- printf("cmp: EOF on %s\n",
+ fprintf(stderr, "cmp: EOF on %s\n",
len1 < len2 ? TT.name : name);
}
toys.exitval = 1;