From: Florian Forster Date: Mon, 30 Jun 2008 16:16:07 +0000 (+0200) Subject: src/{exec,types_list,utils_cache}.c: Fix format strings. X-Git-Tag: collectd-4.5.0~105 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=33fc797e4095b55a815cc2fa755f384204583dd5;p=collectd.git src/{exec,types_list,utils_cache}.c: Fix format strings. --- diff --git a/src/exec.c b/src/exec.c index 6b6836e9..a80de1e7 100644 --- a/src/exec.c +++ b/src/exec.c @@ -692,9 +692,9 @@ static void *exec_notification_one (void *arg) /* {{{ */ if (meta->type == NM_TYPE_STRING) fprintf (fh, "%s: %s\n", meta->name, meta->value_string); else if (meta->type == NM_TYPE_SIGNED_INT) - fprintf (fh, "%s: %lli\n", meta->name, meta->value_signed_int); + fprintf (fh, "%s: %"PRIi64"\n", meta->name, meta->value_signed_int); else if (meta->type == NM_TYPE_UNSIGNED_INT) - fprintf (fh, "%s: %llu\n", meta->name, meta->value_unsigned_int); + fprintf (fh, "%s: %"PRIu64"\n", meta->name, meta->value_unsigned_int); else if (meta->type == NM_TYPE_DOUBLE) fprintf (fh, "%s: %e\n", meta->name, meta->value_double); else if (meta->type == NM_TYPE_BOOLEAN) diff --git a/src/types_list.c b/src/types_list.c index a9af9e6d..7600c346 100644 --- a/src/types_list.c +++ b/src/types_list.c @@ -34,7 +34,7 @@ static int parse_ds (data_source_t *dsrc, char *buf, size_t buf_len) if (buf_len < 11) { - ERROR ("parse_ds: (buf_len = %u) < 11", buf_len); + ERROR ("parse_ds: (buf_len = %zu) < 11", buf_len); return (-1); } diff --git a/src/utils_cache.c b/src/utils_cache.c index 04075f55..d0e77ef3 100644 --- a/src/utils_cache.c +++ b/src/utils_cache.c @@ -522,7 +522,7 @@ gauge_t *uc_get_rate (const data_set_t *ds, const value_list_t *vl) if (ret_num != ds->ds_num) { ERROR ("utils_cache: uc_get_rate: ds[%s] has %i values, " - "but uc_get_rate_by_name returned %i.", + "but uc_get_rate_by_name returned %zu.", ds->type, ds->ds_num, ret_num); sfree (ret); return (NULL);