diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/fixdep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/fixdep.c b/scripts/fixdep.c index db45bd1888c0..1e9ffda8473b 100644 --- a/scripts/fixdep.c +++ b/scripts/fixdep.c @@ -143,7 +143,7 @@ void grow_config(int len) size_config = 2048; str_config = realloc(str_config, size_config *= 2); if (str_config == NULL) - { perror("malloc"); exit(1); } + { perror("fixdep:malloc"); exit(1); } } } @@ -259,6 +259,7 @@ void do_config_file(char *filename) fd = open(filename, O_RDONLY); if (fd < 0) { + fprintf(stderr, "fixdep: "); perror(filename); exit(2); } @@ -269,7 +270,7 @@ void do_config_file(char *filename) } map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); if ((long) map == -1) { - perror("mmap"); + perror("fixdep: mmap"); close(fd); return; } @@ -326,6 +327,7 @@ void print_deps(void) fd = open(depfile, O_RDONLY); if (fd < 0) { + fprintf(stderr, "fixdep: "); perror(depfile); exit(2); } @@ -337,7 +339,7 @@ void print_deps(void) } map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); if ((long) map == -1) { - perror("mmap"); + perror("fixdep: mmap"); close(fd); return; } |
