In append_pid_filter() a NULL pointer is passed as the argument for a %s format. Change the error message to what is used in trace-record.c append_pid_filter. Signed-off-by: Jerome Marchand <jmarchan@xxxxxxxxxx> --- tracecmd/trace-read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tracecmd/trace-read.c b/tracecmd/trace-read.c index beaf97a8..a5a0e10a 100644 --- a/tracecmd/trace-read.c +++ b/tracecmd/trace-read.c @@ -482,7 +482,7 @@ static char *append_pid_filter(char *curr_filter, char *pid) if (!curr_filter) { filter = malloc(len); if (!filter) - die("Failed to allocate for filter %s", curr_filter); + die("Failed to allocate pid filter"); sprintf(filter, ".*:" FILTER_FMT, pid, pid, pid); } else { curr_len = strlen(curr_filter); -- 2.44.0