lkml.org 
[lkml]   [2014]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/5] tools lib traceevent: field_is_long() includes unsigned long
Date
Note in the comment that field_is_long() also checks for "unsigned
long" and "unsigned long long" in addition to "long long".

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
tools/lib/traceevent/event-parse.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 7a8d9ae..567d9ba 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -1233,7 +1233,7 @@ static int field_is_dynamic(struct format_field *field)

static int field_is_long(struct format_field *field)
{
- /* includes long long */
+ /* includes long long, unsigned long, and unsigned long long */
if (strstr(field->type, "long"))
return 1;

--
1.9.0.431.g014438b


\
 
 \ /
  Last update: 2014-03-18 00:01    [W:0.154 / U:0.548 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site