Navigation Menu

Skip to content

Commit

Permalink
fix incorrect format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtorrero committed May 31, 2018
1 parent 6d45c9b commit 306c72b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/leaseinfo.c
Expand Up @@ -517,17 +517,17 @@ __ni_leaseinfo_dhcp4_dump(FILE *out, const ni_addrconf_lease_t *lease,
(int64_t) lease->acquired.tv_sec);
}
if (lease->dhcp4.lease_time) {
fprintf(out, "%s='%"PRIu16"'\n", __ni_keyword_format
fprintf(out, "%s='%"PRIu32"'\n", __ni_keyword_format
(&key, prefix, "LEASETIME", 0),
lease->dhcp4.lease_time);
}
if (lease->dhcp4.renewal_time) {
fprintf(out, "%s='%"PRIu16"'\n", __ni_keyword_format
fprintf(out, "%s='%"PRIu32"'\n", __ni_keyword_format
(&key, prefix, "RENEWALTIME", 0),
lease->dhcp4.renewal_time);
}
if (lease->dhcp4.rebind_time) {
fprintf(out, "%s='%"PRIu16"'\n", __ni_keyword_format
fprintf(out, "%s='%"PRIu32"'\n", __ni_keyword_format
(&key, prefix, "REBINDTIME", 0),
lease->dhcp4.rebind_time);
}
Expand Down

0 comments on commit 306c72b

Please sign in to comment.