tools lib traceevent: Add UL suffix to MISSING_EVENTS
authorMichael Sartain <[email protected]>
Fri, 12 Jan 2018 00:47:49 +0000 (19:47 -0500)
committerArnaldo Carvalho de Melo <[email protected]>
Wed, 17 Jan 2018 13:22:49 +0000 (10:22 -0300)
Add UL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31.

Signed-off-by: Michael Sartain <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Steven Rostedt <[email protected]>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/lib/traceevent/kbuffer-parse.c

index c94e3641b046638d26164f29dba01cee67fa2f56..ca424b157e4653a009a078604a217bf3853a8ed8 100644 (file)
@@ -24,8 +24,8 @@
 
 #include "kbuffer.h"
 
-#define MISSING_EVENTS (1 << 31)
-#define MISSING_STORED (1 << 30)
+#define MISSING_EVENTS (1UL << 31)
+#define MISSING_STORED (1UL << 30)
 
 #define COMMIT_MASK ((1 << 27) - 1)