summaryrefslogtreecommitdiff
path: root/libc/misc/error
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/error')
-rw-r--r--libc/misc/error/error.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c
index 08044ac83..02b4e8e69 100644
--- a/libc/misc/error/error.c
+++ b/libc/misc/error/error.c
@@ -53,6 +53,8 @@ void __error (int status, int errnum, const char *message, ...)
fflush (stdout);
+ fprintf (stderr, "%s: ", __uclibc_progname);
+
va_start (args, message);
vfprintf (stderr, message, args);
va_end (args);
@@ -87,6 +89,8 @@ void __error_at_line (int status, int errnum, const char *file_name,
fflush (stdout);
+ fprintf (stderr, "%s:", __uclibc_progname);
+
if (file_name != NULL)
fprintf (stderr, "%s:%d: ", file_name, line_number);