From 707e3beedfbd1c31eccfe705025569ef6869776b Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Wed, 24 Oct 2012 18:44:13 -0200 Subject: [PATCH] --- yaml --- r: 338896 b: refs/heads/master c: 814d7a4d2c33657489f7b45bc0b2dcaa0d88edc0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-trace.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a0396eef92c9..79e3f2d1dcb0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8b745263d93470a6ab4528088a26e5cd3dfe7bf6 +refs/heads/master: 814d7a4d2c33657489f7b45bc0b2dcaa0d88edc0 diff --git a/trunk/tools/perf/builtin-trace.c b/trunk/tools/perf/builtin-trace.c index fb83cfe472e3..ba055103b525 100644 --- a/trunk/tools/perf/builtin-trace.c +++ b/trunk/tools/perf/builtin-trace.c @@ -278,7 +278,10 @@ static struct syscall *trace__syscall_info(struct trace *trace, return &trace->syscalls.table[id]; out_cant_read: - printf("Problems reading syscall %d information\n", id); + printf("Problems reading syscall %d", id); + if (id <= trace->syscalls.max && trace->syscalls.table[id].name != NULL) + printf("(%s)", trace->syscalls.table[id].name); + puts(" information"); return NULL; }