summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-01-13 11:34:30 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-01-13 11:34:30 (GMT)
commitfc6cdc4904033561357d82e900d6e36b0e391125 (patch)
tree9f9327059184615161d11b0bdb3ebfa7a487631b
parent68194820226407465d2ad10dff69954485eb200c (diff)
print return code when return with error
-rw-r--r--heartbeatclient.c2
-rw-r--r--luaclient.c2
-rw-r--r--serialclient.c2
-rw-r--r--stdioclient.c2
-rw-r--r--switchctl.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/heartbeatclient.c b/heartbeatclient.c
index 7c89248..e3b9e8e 100644
--- a/heartbeatclient.c
+++ b/heartbeatclient.c
@@ -421,7 +421,7 @@ int main(int argc, char* argv[])
if(!ret)
log_printf(NOTICE, "normal shutdown");
else if(ret < 0)
- log_printf(NOTICE, "shutdown after error");
+ log_printf(NOTICE, "shutdown after error (code %d)", ret);
else
log_printf(NOTICE, "shutdown after signal");
diff --git a/luaclient.c b/luaclient.c
index 75a48e9..c3f1766 100644
--- a/luaclient.c
+++ b/luaclient.c
@@ -257,7 +257,7 @@ int main(int argc, char* argv[])
if(!ret)
log_printf(NOTICE, "normal shutdown");
else if(ret < 0)
- log_printf(NOTICE, "shutdown after error");
+ log_printf(NOTICE, "shutdown after error (code %d)", ret);
else
log_printf(NOTICE, "shutdown after signal");
diff --git a/serialclient.c b/serialclient.c
index 3cb0b0c..538df13 100644
--- a/serialclient.c
+++ b/serialclient.c
@@ -274,7 +274,7 @@ int main(int argc, char* argv[])
if(!ret)
log_printf(NOTICE, "normal shutdown");
else if(ret < 0)
- log_printf(NOTICE, "shutdown after error");
+ log_printf(NOTICE, "shutdown after error (code %d)", ret);
else
log_printf(NOTICE, "shutdown after signal");
diff --git a/stdioclient.c b/stdioclient.c
index cfdba7a..5993282 100644
--- a/stdioclient.c
+++ b/stdioclient.c
@@ -179,7 +179,7 @@ int main(int argc, char* argv[])
if(!ret)
log_printf(NOTICE, "normal shutdown");
else if(ret < 0)
- log_printf(NOTICE, "shutdown after error");
+ log_printf(NOTICE, "shutdown after error (code %d)", ret);
else
log_printf(NOTICE, "shutdown after signal");
diff --git a/switchctl.c b/switchctl.c
index 59f7e8d..ca71d42 100644
--- a/switchctl.c
+++ b/switchctl.c
@@ -928,7 +928,7 @@ int main(int argc, char* argv[])
if(!ret)
log_printf(NOTICE, "normal shutdown");
else if(ret < 0)
- log_printf(NOTICE, "shutdown after error");
+ log_printf(NOTICE, "shutdown after error (code %d)", ret);
else
log_printf(NOTICE, "shutdown after signal");