summaryrefslogtreecommitdiffstats
path: root/tools/lib/traceevent/event-parse.c
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2012-04-24 23:19:40 +0200
committerNamhyung Kim <namhyung@kernel.org>2012-07-04 06:40:31 +0200
commitc9bbabe32a231b5caa8c42fa6783405346983c59 (patch)
tree0ba5ec3bffb8ee5ccd67dae6662e3f9e950864b7 /tools/lib/traceevent/event-parse.c
parenttools lib traceevent: Check return value of arg_to_str() (diff)
downloadlinux-c9bbabe32a231b5caa8c42fa6783405346983c59.tar.xz
linux-c9bbabe32a231b5caa8c42fa6783405346983c59.zip
tools lib traceevent: Add missing break in make_bprint_args
In the current code we assign vsize=8 and then fall through to the default and assign vsize=1. -> probably the break is missing here, otherwise we can remove the case. Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/n/tip-3fxjy46h2tr9pl0spv7tems6@git.kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/lib/traceevent/event-parse.c')
-rw-r--r--tools/lib/traceevent/event-parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 863016040dd6..f880db457842 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -3594,6 +3594,7 @@ static struct print_arg *make_bprint_args(char *fmt, void *data, int size, struc
break;
case 2:
vsize = 8;
+ break;
default:
vsize = ls; /* ? */
break;