summaryrefslogtreecommitdiff
path: root/src/libsystemd-network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-05-22 14:38:01 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-05-22 08:38:01 -0400
commit4dd53da97daf3f064149380b6ca9e53273d77d88 (patch)
tree6aa4827e3f766149fef51c15839de9f4c10a363b /src/libsystemd-network
parent401a38e770cdcf0d2ef23991f67b0cc7c80f6f02 (diff)
downloadsystemd-4dd53da97daf3f064149380b6ca9e53273d77d88.tar.gz
sd-dhcp: library code shouldn't log above LOG_DEBUG (#6001)
Let's downgrade the warning introduced by 955d99edc7991386a36e3d33924cc584931fde91 to debug, as we really shouldn't log at more than debug level from library code. (And while we are at it, print the MTU as the right (unsigned) type in the format string.)
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r--src/libsystemd-network/sd-dhcp-lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c
index b4552aa35f..1661874a55 100644
--- a/src/libsystemd-network/sd-dhcp-lease.c
+++ b/src/libsystemd-network/sd-dhcp-lease.c
@@ -611,7 +611,7 @@ int dhcp_lease_parse_options(uint8_t code, uint8_t len, const void *option, void
if (r < 0)
log_debug_errno(r, "Failed to parse MTU, ignoring: %m");
if (lease->mtu < DHCP_DEFAULT_MIN_SIZE) {
- log_warning("MTU value of %d too small. Using default MTU value of %d instead.", lease->mtu, DHCP_DEFAULT_MIN_SIZE);
+ log_debug("MTU value of %" PRIu16 " too small. Using default MTU value of %d instead.", lease->mtu, DHCP_DEFAULT_MIN_SIZE);
lease->mtu = DHCP_DEFAULT_MIN_SIZE;
}