From: Florian Forster Date: Mon, 14 Jul 2008 07:39:47 +0000 (+0200) Subject: ntpd plugin: Fix two format strings. X-Git-Tag: collectd-4.4.2~4^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9861c52f3ff659035062f0927ca8442341eff4ce;p=collectd.git ntpd plugin: Fix two format strings. --- diff --git a/src/ntpd.c b/src/ntpd.c index ff0a48dc..b6214e87 100644 --- a/src/ntpd.c +++ b/src/ntpd.c @@ -612,7 +612,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, pkt_padding = 0; if (pkt_item_len < res_item_size) pkt_padding = res_item_size - pkt_item_len; - DEBUG ("res_item_size = %i; pkt_padding = %i;", + DEBUG ("res_item_size = %i; pkt_padding = %zi;", res_item_size, pkt_padding); /* Extract the sequence number */ @@ -651,7 +651,7 @@ static int ntpd_receive_response (int *res_items, int *res_size, * Enough with the checks. Copy the data now. * We start by allocating some more memory. */ - DEBUG ("realloc (%p, %i)", (void *) *res_data, + DEBUG ("realloc (%p, %zu)", (void *) *res_data, (items_num + pkt_item_num) * res_item_size); items = realloc ((void *) *res_data, (items_num + pkt_item_num) * res_item_size);