[hackers] [sbase] Always print the program name || sin

From: <git_AT_suckless.org>
Date: Thu, 14 Nov 2013 20:00:39 +0100

commit 078fce3f77ff56dfd7d8824333302b9f435ec717
Author: sin <sin_AT_2f30.org>
Date: Thu Nov 14 13:06:48 2013 +0000

    Always print the program name
    
    This is generally very useful for sbase, especially when we
    hit some case that is not implemented and we want to know which
    program failed.

diff --git a/util/eprintf.c b/util/eprintf.c
index 4b12902..c878e81 100644
--- a/util/eprintf.c
+++ b/util/eprintf.c
_AT_@ -33,7 +33,7 @@ enprintf(int status, const char *fmt, ...)
 void
 venprintf(int status, const char *fmt, va_list ap)
 {
- /*fprintf(stderr, "%s: ", argv0);*/
+ fprintf(stderr, "%s: ", argv0);
 
         vfprintf(stderr, fmt, ap);
 
_AT_@ -50,6 +50,8 @@ weprintf(const char *fmt, ...)
 {
         va_list ap;
 
+ fprintf(stderr, "%s: ", argv0);
+
         va_start(ap, fmt);
         vfprintf(stderr, fmt, ap);
         va_end(ap);
Received on Thu Nov 14 2013 - 20:00:39 CET

This archive was generated by hypermail 2.3.0 : Thu Nov 14 2013 - 20:12:12 CET