[PATCH 08/10] lib traceevent: Add UL suffix to MISSING_EVENTS
From: Steven Rostedt
Date: Thu Jan 11 2018 - 19:49:30 EST
From: Michael Sartain <mikesart@xxxxxxxxxxxx>
Add UL suffix to MISSING_EVENTS since ints shouldn't be left shifted by 31.
Link: http://lkml.kernel.org/r/20171016165542.13038-4-mikesart@xxxxxxxxxxxx
Signed-off-by: Michael Sartain <mikesart@xxxxxxxxxxxx>
Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>
---
tools/lib/traceevent/kbuffer-parse.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/lib/traceevent/kbuffer-parse.c b/tools/lib/traceevent/kbuffer-parse.c
index c94e3641b046..ca424b157e46 100644
--- a/tools/lib/traceevent/kbuffer-parse.c
+++ b/tools/lib/traceevent/kbuffer-parse.c
@@ -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)
--
2.13.2