Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

We get them from inttypes.h.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-qla4e4mwbf1oewafp1ee2etd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

-20
-20
tools/perf/util/util.h
··· 34 34 #include <poll.h> 35 35 #include <sys/socket.h> 36 36 #include <sys/ioctl.h> 37 - #include <inttypes.h> 38 37 #include <linux/kernel.h> 39 38 #include <linux/types.h> 40 39 #include <sys/ttydefaults.h> ··· 48 49 extern const char *spaces; 49 50 extern const char *dots; 50 51 extern char buildid_dir[]; 51 - 52 - /* On most systems <limits.h> would have given us this, but 53 - * not on some systems (e.g. GNU/Hurd). 54 - */ 55 - #ifndef PATH_MAX 56 - #define PATH_MAX 4096 57 - #endif 58 - 59 - #ifndef PRIuMAX 60 - #define PRIuMAX "llu" 61 - #endif 62 - 63 - #ifndef PRIu32 64 - #define PRIu32 "u" 65 - #endif 66 - 67 - #ifndef PRIx32 68 - #define PRIx32 "x" 69 - #endif 70 52 71 53 #ifndef PATH_SEP 72 54 #define PATH_SEP ':'