trace-cmd/bz1389219-segmentation-fault-in-trace-snapshot.patch

14 lines
383 B
Diff

diff --git a/trace-snapshot.c b/trace-snapshot.c
index 9d3608c..f1036f6 100644
--- a/trace-snapshot.c
+++ b/trace-snapshot.c
@@ -42,7 +42,7 @@ static void write_file(const char *name, char *val)
n = write(fd, val, strlen(val));
if (n < 0)
- die("failed to write '%d' to %s\n", path);
+ die("failed to write to %s\n", path);
tracecmd_put_tracing_file(path);
close(fd);
}