summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp6-option.c
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@vmware.com>2020-04-13 05:04:22 +0200
committerSusant Sahani <ssahani@vmware.com>2020-04-13 06:06:14 +0200
commit667ceb9d9dc2d19e3254fdc12acebae9b50ce613 (patch)
tree2b7ad183e541eeb7a233b1963419843a43a6ec16 /src/libsystemd-network/dhcp6-option.c
parent7a0f1895d3ea8ee18dd33ed08e4a2188f7f836b6 (diff)
downloadsystemd-667ceb9d9dc2d19e3254fdc12acebae9b50ce613.tar.gz
sd-network: DHCP6 - Use readable error status rather than numeric
value in the log message
Diffstat (limited to 'src/libsystemd-network/dhcp6-option.c')
-rw-r--r--src/libsystemd-network/dhcp6-option.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp6-option.c b/src/libsystemd-network/dhcp6-option.c
index 9f5352a60d..ed684d44f3 100644
--- a/src/libsystemd-network/dhcp6-option.c
+++ b/src/libsystemd-network/dhcp6-option.c
@@ -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;
}