aboutsummaryrefslogtreecommitdiff
path: root/toys/cmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/cmp.c')
-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;