From cefc83a448ae75ece921fba31bcd9b83c2d41590 Mon Sep 17 00:00:00 2001 From: Jeff Hostetler Date: Tue, 15 Jan 2019 12:49:40 -0500 Subject: [PATCH] trace2: fixup: remove warning message when opening trace file --- trace2/tr2_dst.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/trace2/tr2_dst.c b/trace2/tr2_dst.c index e68c62629d2f5a..374b05b6619343 100644 --- a/trace2/tr2_dst.c +++ b/trace2/tr2_dst.c @@ -34,8 +34,10 @@ int tr2_dst_get_trace_fd(struct tr2_dst *dst) else if (is_absolute_path(trace)) { int fd = open(trace, O_WRONLY | O_APPEND | O_CREAT, 0666); if (fd == -1) { - warning("could not open '%s' for tracing: %s", - trace, strerror(errno)); + /* + * Silently eat the error and disable tracing on + * this destination. + */ tr2_dst_trace_disable(dst); } else { dst->fd = fd;