chiark / gitweb /
compile with warnings; need to fix up many
[inn-innduct.git] / backends / innduct.c
index 37241d4c9c892f6df484bd5de0dc723cf96c4a40..4311dca21299888966a793a2cb0e9d11201f965b 100644 (file)
@@ -583,7 +583,7 @@ static void report_child_status(const char *what, int status) {
   if (WIFEXITED(status)) {
     int es= WEXITSTATUS(status);
     if (es)
-      warn("%s: child died with error exit status %d",es);
+      warn("%s: child died with error exit status %d", what, es);
   } else if (WIFSIGNALED(status)) {
     int sig= WTERMSIG(status);
     const char *sigstr= strsignal(sig);
@@ -594,7 +594,7 @@ static void report_child_status(const char *what, int status) {
       warn("%s: child died due to unknown fatal signal %d%s",
           what, sig, coredump);
   } else {
-    warn("%s: child died with unknown wait status %d", status);
+    warn("%s: child died with unknown wait status %d", what,status);
   }
 }