summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd2133d)
raw | patch | inline | side by side (parent: cd2133d)
author | Florian Forster <octo@noris.net> | |
Mon, 30 Jun 2008 16:16:07 +0000 (18:16 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Mon, 30 Jun 2008 16:16:07 +0000 (18:16 +0200) |
src/exec.c | patch | blob | history | |
src/types_list.c | patch | blob | history | |
src/utils_cache.c | patch | blob | history |
diff --git a/src/exec.c b/src/exec.c
index 6b6836e99d033723c75fefda49dd36b8242ea00a..a80de1e7a321b452b0971e2263ab0c1be9c2abf2 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
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 a9af9e6d29f783eeed53f8fb1836414511d77ac4..7600c346ecc1e8c901460a029c2ead4c167e5576 100644 (file)
--- a/src/types_list.c
+++ b/src/types_list.c
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 04075f5579dade1175687f793c3f056288267d4a..d0e77ef351b840a79fcd91123264c3b43670dbb2 100644 (file)
--- a/src/utils_cache.c
+++ b/src/utils_cache.c
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);