2013-08-01 13:14:49

by Olaf Hering

[permalink] [raw]
Subject: [PATCH] Tools: hv: log errors to syslog in kvp_set_ip_info

Signed-off-by: Olaf Hering <[email protected]>
---
tools/hv/hv_kvp_daemon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/hv/hv_kvp_daemon.c b/tools/hv/hv_kvp_daemon.c
index b96eccc..6a31ca0 100644
--- a/tools/hv/hv_kvp_daemon.c
+++ b/tools/hv/hv_kvp_daemon.c
@@ -1361,7 +1361,8 @@ setval_done:
return 0;

setval_error:
- syslog(LOG_ERR, "Failed to write config file");
+ syslog(LOG_ERR, "Failed to write config file. error: %d %s",
+ errno, strerror(errno));
fclose(file);
return error;
}