From: Marc Fournier Date: Sun, 18 Dec 2016 09:37:38 +0000 (+0100) Subject: patches: add dpdkstat-portable-format-string.patch X-Git-Tag: collectd-5.7.0-2^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1e641222be0e5ab9ff43b18e99de691207d368af;p=pkg-collectd.git patches: add dpdkstat-portable-format-string.patch --- diff --git a/debian/changelog b/debian/changelog index dde3d06..142a5e0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,9 @@ collectd (5.7.0-2) UNRELEASED; urgency=medium + * debian/patches: + - Add dpdkstat-portable-format-string.patch, fixing the build on + i386. + -- Marc Fournier Sun, 18 Dec 2016 10:32:14 +0100 collectd (5.7.0-1) unstable; urgency=medium diff --git a/debian/patches/dpdkstat-portable-format-string.patch b/debian/patches/dpdkstat-portable-format-string.patch new file mode 100644 index 0000000..965504f --- /dev/null +++ b/debian/patches/dpdkstat-portable-format-string.patch @@ -0,0 +1,25 @@ +Description: Fix format string portability issue +Author: Marc Fournier + +--- 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) { diff --git a/debian/patches/series b/debian/patches/series index 8c3f46b..b13e8f2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ rrd_filter_path.patch collection_conf_path.patch myplugin_includes.patch nagios-debian-paths.patch +dpdkstat-portable-format-string.patch