<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From e6cfd977c81b335664db1d5d3d6b5488c245e30f Mon Sep 17 00:00:00 2001
From: Romain Naour &lt;romain.naour@openwide.fr&gt;
Date: Sat, 8 Aug 2015 18:26:15 +0200
Subject: [PATCH] add missing stdio.h header
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 &lt;romain.naour@openwide.fr&gt;
---
 src/perf/perf_bundle.cpp | 1 +
 1 file changed, 1 insertion(+)

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 &lt;sys/stat.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;unistd.h&gt;
+#include &lt;stdio.h&gt;
 
 #include "perf_bundle.h"
 #include "perf_event.h"
-- 
2.4.3

</pre></body></html>