Skip to contentSkip to conversation

perf tools: Remove PRI[xu] macros from perf.h

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Apr 20, 2017 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  c3dca1a1c0ec51f384515f7e6f3b4e289a1dea2f
Gitweb:     http://git.kernel.org/tip/c3dca1a1c0ec51f384515f7e6f3b4e289a1dea2f
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 17 Apr 2017 15:25:00 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 19 Apr 2017 13:01:47 -0300

perf tools: Remove PRI[xu] macros from perf.h

We get them from inttypes.h.

---
 tools/perf/util/util.h | 20 --------------------
 1 file changed, 20 deletions(-)
tools/perf/util/util.h +0 -20
index 2abd4f7..593a241 100644
@@ -34,7 +34,6 @@
 #include <poll.h>
 #include <sys/socket.h>
 #include <sys/ioctl.h>
-#include <inttypes.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
 #include <sys/ttydefaults.h>
@@ -50,25 +49,6 @@ extern const char *spaces;
 extern const char *dots;
 extern char buildid_dir[];
 
-/* On most systems <limits.h> would have given us this, but
- * not on some systems (e.g. GNU/Hurd).
- */
-#ifndef PATH_MAX
-#define PATH_MAX 4096
-#endif
-
-#ifndef PRIuMAX
-#define PRIuMAX "llu"
-#endif
-
-#ifndef PRIu32
-#define PRIu32 "u"
-#endif
-
-#ifndef PRIx32
-#define PRIx32 "x"
-#endif
-
 #ifndef PATH_SEP
 #define PATH_SEP ':'
 #endif