]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
intel_pmu plugin: fix for compatibility issue with collectd 5.8
authorKamil Wiatrowski <kamilx.wiatrowski@intel.com>
Mon, 19 Feb 2018 13:24:10 +0000 (13:24 +0000)
committerKamil Wiatrowski <kamilx.wiatrowski@intel.com>
Tue, 20 Feb 2018 08:32:14 +0000 (08:32 +0000)
Add definition for PRIsz macro to make code backward compatible with
collectd-5.8 branch.

Change-Id: I880340af5ae883a444563422b3e9975b3693683c
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
src/intel_rdt.c
src/utils_config_cores.h

index 6613ab8fd67be1b28171febb457caef2343aff11..1a39e044651eb460fb3357b370246ff4985ceb34 100644 (file)
@@ -25,8 +25,8 @@
  *   Serhiy Pshyk <serhiyx.pshyk@intel.com>
  **/
 
-#include "common.h"
 #include "collectd.h"
+#include "common.h"
 
 #include "utils_config_cores.h"
 
index c1b92d0a7ac989286d1768f48ae8437eed4ffe2f..b5787b1e31b317477bc03ef28be1531b0c61304d 100644 (file)
 #ifndef UTILS_CONFIG_CORES_H
 #define UTILS_CONFIG_CORES_H 1
 
+#ifndef PRIsz
+#define PRIsz "zu"
+#endif /* PRIsz */
+
 struct core_group_s {
   char *desc;
   unsigned *cores;