]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-network: DHCP6 - Use readable error status rather than numeric 15411/head
authorSusant Sahani <ssahani@vmware.com>
Mon, 13 Apr 2020 03:04:22 +0000 (05:04 +0200)
committerSusant Sahani <ssahani@vmware.com>
Mon, 13 Apr 2020 04:06:14 +0000 (06:06 +0200)
value in the log message

src/libsystemd-network/dhcp6-option.c

index 9f5352a60d7c3f4d6e55b3fcd16ce5f685d15530..ed684d44f30ffe92e2b864bad56de54cb71cff31 100644 (file)
@@ -464,8 +464,8 @@ int dhcp6_option_parse_ia(DHCP6Option *iaoption, DHCP6IA *ia) {
                         if (status < 0)
                                 return status;
                         if (status > 0) {
-                                log_dhcp6_client(client, "IA status %d",
-                                                 status);
+                                log_dhcp6_client(client, "IA status %s",
+                                                 dhcp6_message_status_to_string(status));
 
                                 return -EINVAL;
                         }