summaryrefslogtreecommitdiffstats
path: root/tools/hv
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2013-08-04 16:40:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-05 08:36:31 +0200
commitd3b688c6622334e8460e808755d7d9c4a78c3ae5 (patch)
tree7373296c1f55a13cab0b180381c6bfdb8e149bcc /tools/hv
parentTools: hv: in kvp_set_ip_info free mac_addr right after usage (diff)
downloadlinux-d3b688c6622334e8460e808755d7d9c4a78c3ae5.tar.xz
linux-d3b688c6622334e8460e808755d7d9c4a78c3ae5.zip
Tools: hv: check return value of system in hv_kvp_daemon
hv_kvp_daemon.c: In function 'main': hv_kvp_daemon.c:1441:8: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result] Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/hv')
-rw-r--r--tools/hv/hv_kvp_daemon.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index ba075e514422..b96eccce48e3 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1353,7 +1353,11 @@ setval_done:
*/
snprintf(cmd, sizeof(cmd), "%s %s", "hv_set_ifconfig", if_file);
- system(cmd);
+ if (system(cmd)) {
+ syslog(LOG_ERR, "Failed to execute cmd '%s'; error: %d %s",
+ cmd, errno, strerror(errno));
+ return HV_E_FAIL;
+ }
return 0;
setval_error: