From: Maryam Tahhan Date: Tue, 19 Jul 2016 12:14:19 +0000 (+0100) Subject: hugpages: fix compilation error X-Git-Tag: collectd-5.7.0~119^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fa49565fa7ef682ce61bc446fb0d2469eedddc66;p=collectd.git hugpages: fix compilation error Fix error: format '%lu' expects type 'long unsigned int', but argument 6 has type 'derive_t'. For line 93. Change-Id: I4f164d238cd4fa6f8a69d78b2906042aa3c5da72 Signed-off-by: Maryam Tahhan --- diff --git a/src/hugepages.c b/src/hugepages.c index db18de05..fb736a6a 100644 --- a/src/hugepages.c +++ b/src/hugepages.c @@ -90,7 +90,7 @@ static void submit_one (const char *plug_inst, const char *type, sstrncpy (vl.type_instance, type_instance, sizeof (vl.type_instance)); } - DEBUG("submit_one pl_inst:%s, inst_type %s, type %s, val=%lu", + DEBUG("submit_one pl_inst:%s, inst_type %s, type %s, val=%"PRIu64"", plug_inst, type_instance, type, value); plugin_dispatch_values (&vl);