diff options
author | Romain Naour <romain.naour@openwide.fr> | 2015-09-20 12:31:59 +0200 |
---|---|---|
committer | Alexandra Yates <alexandra.yates@linux.intel.com> | 2015-09-25 14:28:33 -0700 |
commit | 4c081b18279f8e7c4af3fbfa544bde5bfb3cb21e (patch) | |
tree | f9ec6a6c086bdff69c1f94ee5ab93a1a77ae50e3 | |
parent | 3b46b64dd6ee6dc6b6454249a48e56d5d3ecd5a2 (diff) | |
download | powertop-2.0-4c081b18279f8e7c4af3fbfa544bde5bfb3cb21e.tar.gz |
add missing stdio.h header
snprinf is defined in stdio.h.
Fixes:
perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
-rw-r--r-- | src/perf/perf_bundle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp index cf1ae11..3d216ff 100644 --- a/src/perf/perf_bundle.cpp +++ b/src/perf/perf_bundle.cpp @@ -31,6 +31,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> +#include <stdio.h> #include "perf_bundle.h" #include "perf_event.h" |