1 Description: Fix format string portability issue
2 Author: Marc Fournier <marc@bl.uem.li>
4 --- a/src/dpdkstat.c
5 +++ b/src/dpdkstat.c
6 @@ -159,8 +159,8 @@ static int dpdk_shm_init(size_t size);
7 static void dpdk_config_init_default(void) {
8 g_configuration->interval = plugin_get_interval();
9 if (g_configuration->interval == cf_get_default_interval())
10 - WARNING("dpdkstat: No time interval was configured, default value %lu ms "
11 - "is set",
12 + WARNING("dpdkstat: No time interval was configured, default value %" PRIu64
13 + " ms is set",
14 CDTIME_T_TO_MS(g_configuration->interval));
15 /* Default is all ports enabled */
16 g_configuration->enabled_port_mask = ~0;
17 @@ -413,7 +413,7 @@ static int dpdk_helper_spawn(enum DPDK_HELPER_ACTION action) {
18 if (pid > 0) {
19 close(g_configuration->helper_pipes[1]);
20 g_configuration->helper_pid = pid;
21 - DEBUG("dpdkstat: helper pid %lu", (long)g_configuration->helper_pid);
22 + DEBUG("dpdkstat: helper pid %li", (long)g_configuration->helper_pid);
23 /* Kick helper once its alive to have it start processing */
24 sem_post(&g_configuration->sema_helper_get_stats);
25 } else if (pid == 0) {