trace-cmd report: Print version of file being read
PATCH 1/1 trace-cmd report: Print version of file being read
From: "Steven Rostedt (Google)" <[email protected]>
The print of the version is no longer done by default. This should be, but was changed when moved to the libtracecmd, which now uses tracecmd_info() to output it. But since default loglevel is TEP_LOG_CRITICAL it is not displayed.
Set the default loglevel for tracecmd to TEP_LOG_INFO, as tracecmd is not as noisy as the other libraries may be.
Signed-off-by Steven Rostedt (Google) <[email protected]>
--- lib/trace-cmd/trace-input.c | 2 +- lib/trace-cmd/trace-util.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
lib/trace-cmd/trace-input.c +1 -1
@@ -4168,7 +4168,7 @@ struct tracecmd_input *tracecmd_alloc_fd(int fd, int flags) version =read_string (handle);if (!version) goto failed_read; -tracecmd_info ("version = %s\n" , version); +tracecmd_info ("version = %s" , version); ver =strtol (version,NULL ,10 );if (!ver && errno) goto failed_read;
lib/trace-cmd/trace-util.c +1 -1
@@ -30,7 +30,7 @@#define PROC_STACK_FILE "/proc/sys/kernel/stack_tracer_enabled"static bool debug; -static int log_level =TEP_LOG_CRITICAL ; +static int log_level =TEP_LOG_INFO ;static FILE *logfp; const static struct {
Signature · 1 line
2.34.1