Prefix error/warning messages with program name if DEBUG is defined
This commit is contained in:
parent
07592f31be
commit
21e708abd4
@ -33,7 +33,9 @@ enprintf(int status, const char *fmt, ...)
|
|||||||
void
|
void
|
||||||
venprintf(int status, const char *fmt, va_list ap)
|
venprintf(int status, const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
|
#if DEBUG
|
||||||
fprintf(stderr, "%s: ", argv0);
|
fprintf(stderr, "%s: ", argv0);
|
||||||
|
#endif
|
||||||
|
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
|
|
||||||
@ -50,7 +52,7 @@ weprintf(const char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
#if 0
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "%s: ", argv0);
|
fprintf(stderr, "%s: ", argv0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user