From c2f62a97261dd471456b72ada279d3a14360a5cd Mon Sep 17 00:00:00 2001 From: Elie De Brauwer Date: Thu, 5 Jul 2012 20:11:40 +0200 Subject: Put cmp.c EOF notice on stderr --- toys/cmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3