diff options
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index add379c55c36..1653a62a478e 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -385,10 +385,12 @@ static void clear_probe_point(struct probe_point *pp) | |||
385 | static void show_perf_probe_event(const char *group, const char *event, | 385 | static void show_perf_probe_event(const char *group, const char *event, |
386 | const char *place, struct probe_point *pp) | 386 | const char *place, struct probe_point *pp) |
387 | { | 387 | { |
388 | int i; | 388 | int i, ret; |
389 | char buf[128]; | 389 | char buf[128]; |
390 | 390 | ||
391 | e_snprintf(buf, 128, "%s:%s", group, event); | 391 | ret = e_snprintf(buf, 128, "%s:%s", group, event); |
392 | if (ret < 0) | ||
393 | die("Failed to copy event: %s", strerror(-ret)); | ||
392 | printf(" %-40s (on %s", buf, place); | 394 | printf(" %-40s (on %s", buf, place); |
393 | 395 | ||
394 | if (pp->nr_args > 0) { | 396 | if (pp->nr_args > 0) { |