<p dir="ltr">Hm, why? Are not error messages more useful?</p>
<div class="gmail_quote">On 13 Apr 2014 12:53, "Umut Tezduyar Lindskog" <<a href="mailto:umut.tezduyar@axis.com">umut.tezduyar@axis.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Log error no for such client_stop(client, DHCP_EVENT_STOP)<br>
---<br>
 src/libsystemd-network/sd-dhcp-client.c |    5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/libsystemd-network/sd-dhcp-client.c b/src/libsystemd-network/sd-dhcp-client.c<br>
index 4892203..9715953 100644<br>
--- a/src/libsystemd-network/sd-dhcp-client.c<br>
+++ b/src/libsystemd-network/sd-dhcp-client.c<br>
@@ -230,7 +230,10 @@ static int client_initialize(sd_dhcp_client *client) {<br>
 static sd_dhcp_client *client_stop(sd_dhcp_client *client, int error) {<br>
         assert_return(client, NULL);<br>
<br>
-        log_dhcp_client(client, "STOPPED: %s", strerror(-error));<br>
+        if (error < 0)<br>
+                log_dhcp_client(client, "STOPPED: %s", strerror(-error));<br>
+        else<br>
+                log_dhcp_client(client, "STOPPED: %d", error);<br>
<br>
         client = client_notify(client, error);<br>
<br>
--<br>
1.7.10.4<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>