2
1

0004-add-missing-stdio.h-header.patch 1013 B

1234567891011121314151617181920212223242526272829303132333435
  1. From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Sat, 8 Aug 2015 18:26:15 +0200
  4. Subject: [PATCH] add missing stdio.h header
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. snprinf is defined in stdio.h.
  9. Fixes:
  10. perf/perf_bundle.cpp: In function ‘void parse_event_format(const char*)’:
  11. perf/perf_bundle.cpp:141:75: error: ‘sprintf’ was not declared in this scope
  12. sprintf(file, "/sys/kernel/debug/tracing/events/%s/%s/format", sys, event);
  13. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  14. ---
  15. src/perf/perf_bundle.cpp | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/src/perf/perf_bundle.cpp b/src/perf/perf_bundle.cpp
  18. index cf1ae11..3d216ff 100644
  19. --- a/src/perf/perf_bundle.cpp
  20. +++ b/src/perf/perf_bundle.cpp
  21. @@ -31,6 +31,7 @@
  22. #include <sys/stat.h>
  23. #include <fcntl.h>
  24. #include <unistd.h>
  25. +#include <stdio.h>
  26. #include "perf_bundle.h"
  27. #include "perf_event.h"
  28. --
  29. 2.4.3