aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-06-16 16:16:00 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-06-16 16:16:40 -0400
commit5f1acf8cc910cb6ac1bc1d9bb3548f7e3c7462cd (patch)
tree72a2e287409643cd619ab35feaabfa7a499d1bd9
parent96a527cecb26cbb1e18deb0ef83efe32f356d467 (diff)
kernelshark: Add newline between perror and message in warning
In showing a warning dialog, if errno exists, then add a new line between the message and the errno message. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--trace-dialog.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/trace-dialog.c b/trace-dialog.c
index 73da046..a19813b 100644
--- a/trace-dialog.c
+++ b/trace-dialog.c
@@ -127,8 +127,10 @@ void warning(const char *fmt, ...)
127 127
128 g_string_append(str, "\n"); 128 g_string_append(str, "\n");
129 129
130 if (errno) 130 if (errno) {
131 g_string_prepend(str, "\n");
131 g_string_prepend(str, strerror(errno)); 132 g_string_prepend(str, strerror(errno));
133 }
132 134
133 errno = 0; 135 errno = 0;
134 136