From ae236613e87114ce4e3b027f37d414826fda7f68 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Sun, 18 Dec 2016 11:17:59 +0100 Subject: [PATCH] dpdkstat: use portable format strings --- src/dpdkstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dpdkstat.c b/src/dpdkstat.c index de75c0c0..3ab269d5 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -159,8 +159,8 @@ static int dpdk_shm_init(size_t size); static void dpdk_config_init_default(void) { g_configuration->interval = plugin_get_interval(); if (g_configuration->interval == cf_get_default_interval()) - WARNING("dpdkstat: No time interval was configured, default value %lu ms " - "is set", + WARNING("dpdkstat: No time interval was configured, default value %" PRIu64 + " ms is set", CDTIME_T_TO_MS(g_configuration->interval)); /* Default is all ports enabled */ g_configuration->enabled_port_mask = ~0; @@ -413,7 +413,7 @@ static int dpdk_helper_spawn(enum DPDK_HELPER_ACTION action) { if (pid > 0) { close(g_configuration->helper_pipes[1]); g_configuration->helper_pid = pid; - DEBUG("dpdkstat: helper pid %lu", (long)g_configuration->helper_pid); + DEBUG("dpdkstat: helper pid %li", (long)g_configuration->helper_pid); /* Kick helper once its alive to have it start processing */ sem_post(&g_configuration->sema_helper_get_stats); } else if (pid == 0) { -- 2.11.0