dhcp: fix printf format string for printing guint32 variable

Fixes: 9013fd42d6
This commit is contained in:
Thomas Haller
2014-11-24 17:26:52 +01:00
parent 13d9b28323
commit 0b59752512

View File

@@ -251,7 +251,7 @@ lease_to_ip4_config (sd_dhcp_lease *lease,
address.timestamp = nm_utils_get_monotonic_timestamp_s ();
address.lifetime = address.preferred = lifetime;
end_time = (guint64) time (NULL) + lifetime;
LOG_LEASE (LOGD_DHCP4, " expires in %" G_GUINT64_FORMAT " seconds", lifetime);
LOG_LEASE (LOGD_DHCP4, " expires in %" G_GUINT32_FORMAT " seconds", lifetime);
add_option_u64 (options,
dhcp4_requests,
DHCP_OPTION_IP_ADDRESS_LEASE_TIME,