summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhto Truu <ahto.truu@guardtime.com>2013-08-12 21:05:44 +0300
committerRainer Gerhards <rgerhards@adiscon.com>2013-09-02 14:55:30 +0200
commit468c7cc002e09f952be415cd04f055873a553a31 (patch)
treec9db1405ad9135ddda493c1aadfc1cecb0835564
parent97f096e351b420c1d845c91c578c88eac6e6af72 (diff)
downloadrsyslog-468c7cc002e09f952be415cd04f055873a553a31.tar.gz
rsyslog-468c7cc002e09f952be415cd04f055873a553a31.tar.bz2
rsyslog-468c7cc002e09f952be415cd04f055873a553a31.zip
Better error messages from rsgtutil
-rw-r--r--tools/rsgtutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/rsgtutil.c b/tools/rsgtutil.c
index 095b8066..567dcf4c 100644
--- a/tools/rsgtutil.c
+++ b/tools/rsgtutil.c
@@ -74,7 +74,7 @@ dumpFile(char *name)
if(fp != stdin)
fclose(fp);
return;
-err: fprintf(stderr, "error %d processing file %s\n", r, name);
+err: fprintf(stderr, "error %d (%s) processing file %s\n", r, RSGTE2String(r), name);
}
static void
@@ -113,7 +113,7 @@ showSigblkParams(char *name)
return;
err:
if(r != RSGTE_EOF)
- fprintf(stderr, "error %d processing file %s\n", r, name);
+ fprintf(stderr, "error %d (%s) processing file %s\n", r, RSGTE2String(r), name);
}
static void
@@ -145,7 +145,7 @@ detectFileType(char *name)
if(fp != stdin)
fclose(fp);
return;
-err: fprintf(stderr, "error %d processing file %s\n", r, name);
+err: fprintf(stderr, "error %d (%s) processing file %s\n", r, RSGTE2String(r), name);
}
static inline int
@@ -327,7 +327,7 @@ done:
return;
err:
- fprintf(stderr, "error %d processing file %s\n", r, name);
+ fprintf(stderr, "error %d (%s) processing file %s\n", r, RSGTE2String(r), name);
if(logfp != NULL)
fclose(logfp);
if(sigfp != NULL)