mbox series

[0/2] trace-cmd: Add gcc printf format specifier

Message ID 20210422210730.857958-1-rostedt@goodmis.org (mailing list archive)
Headers show
Series trace-cmd: Add gcc printf format specifier | expand

Message

Steven Rostedt April 22, 2021, 9:07 p.m. UTC
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>

To keep from having bad warning() or die() formats with repect to their
args, add the gcc printf format specifier that will have gcc check the
formatting of the strings used.

Steven Rostedt (VMware) (2):
  trace-cmd: Add printf format attribute to die() and warning()
  trace-cmd: Fix up the die() formats

 tracecmd/include/trace-local.h |  5 +++++
 tracecmd/trace-dump.c          | 14 +++++++-------
 tracecmd/trace-record.c        |  2 +-
 3 files changed, 13 insertions(+), 8 deletions(-)