This will help us to catch missed format specifiers much quicker.

Signed-off-by: Dmitry Monakhov <[email protected]>
---
 tools/lib/traceevent/event-parse.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/lib/traceevent/event-parse.c 
b/tools/lib/traceevent/event-parse.c
index 27dc1f8..546a0f9 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -5066,6 +5066,9 @@ static void pretty_print(struct trace_seq *s, void *data, 
int size, struct event
                                arg = arg->next;
                                break;
                        default:
+                               do_warning_event(event,
+                                                "%s: unknown format '%%%c'",
+                                                __func__, *ptr);
                                trace_seq_printf(s, ">%c<", *ptr);
 
                        }
-- 
2.7.4

Reply via email to