From: Thomas Veerman Date: Fri, 13 Apr 2012 13:51:56 +0000 (+0000) Subject: service: make clear who is printing the error X-Git-Tag: v3.2.1~590 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=d729ecb11beba0f18fe91b1c0ef3754755351236;p=minix.git service: make clear who is printing the error --- diff --git a/commands/service/service.c b/commands/service/service.c index 88d9bc767..3f8cadf67 100644 --- a/commands/service/service.c +++ b/commands/service/service.c @@ -264,7 +264,7 @@ static int parse_arguments(int argc, char **argv, u32_t *rss_flags) } if (stat(req_path, &stat_buf) == -1) { perror(req_path); - fprintf(stderr, "couldn't get stat binary\n"); + fprintf(stderr, "%s: couldn't get stat binary\n", argv[ARG_NAME]); exit(errno); } if (! (stat_buf.st_mode & S_IFREG)) {