diff options
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
-rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 1546b749a3a3..73ee12d96c33 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
@@ -408,8 +408,11 @@ static void python_process_tracepoint(struct perf_sample *sample, | |||
408 | if (!t) | 408 | if (!t) |
409 | Py_FatalError("couldn't create Python tuple"); | 409 | Py_FatalError("couldn't create Python tuple"); |
410 | 410 | ||
411 | if (!event) | 411 | if (!event) { |
412 | die("ug! no event found for type %d", (int)evsel->attr.config); | 412 | snprintf(handler_name, sizeof(handler_name), |
413 | "ug! no event found for type %" PRIu64, (u64)evsel->attr.config); | ||
414 | Py_FatalError(handler_name); | ||
415 | } | ||
413 | 416 | ||
414 | pid = raw_field_value(event, "common_pid", data); | 417 | pid = raw_field_value(event, "common_pid", data); |
415 | 418 | ||