]> Zhao Yanbai Git Server - minix.git/commitdiff
service: make clear who is printing the error
authorThomas Veerman <thomas@minix3.org>
Fri, 13 Apr 2012 13:51:56 +0000 (13:51 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 13 Apr 2012 13:51:56 +0000 (13:51 +0000)
commands/service/service.c

index 88d9bc767062973965c09476f43589f5dfee1092..3f8cadf674112aad2256b9a0c5ae200a6ae57bbe 100644 (file)
@@ -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)) {