From 2d6e09a66ad9b3e01588c515ae66476de8903754 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 12 Feb 2019 09:22:26 +0100 Subject: [PATCH] i3-dump-log: make log message a little more clear (#3618) This came up when trying to debug an issue. --- i3-dump-log/main.c | 2 +- testcases/t/207-shmlog.t | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i3-dump-log/main.c b/i3-dump-log/main.c index e9901f8e..4f15f26f 100644 --- a/i3-dump-log/main.c +++ b/i3-dump-log/main.c @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) { exit(1); } if (root_atom_contents("I3_CONFIG_PATH", conn, screen) != NULL) { - fprintf(stderr, "i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled. Enabling SHM log until cancelled\n\n"); + fprintf(stderr, "i3-dump-log: i3 is running, but SHM logging is not enabled. Enabling SHM log now while i3-dump-log is running\n\n"); ipcfd = ipc_connect(NULL); const char *enablecmd = "debuglog on; shmlog 5242880"; if (ipc_send_message(ipcfd, strlen(enablecmd), diff --git a/testcases/t/207-shmlog.t b/testcases/t/207-shmlog.t index c2b2ebaa..94f4bdea 100644 --- a/testcases/t/207-shmlog.t +++ b/testcases/t/207-shmlog.t @@ -31,7 +31,7 @@ run [ 'i3-dump-log' ], '>', \$stdout, '2>', \$stderr; -like($stderr, qr#^i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled\.#, +like($stderr, qr#^i3-dump-log: i3 is running, but SHM logging is not enabled\.#, 'shm logging not enabled'); ################################################################################ @@ -73,7 +73,7 @@ run [ 'i3-dump-log' ], '>', \$stdout, '2>', \$stderr; -like($stderr, qr#^i3-dump-log: ERROR: i3 is running, but SHM logging is not enabled\.#, +like($stderr, qr#^i3-dump-log: i3 is running, but SHM logging is not enabled\.#, 'shm logging not enabled'); done_testing; -- 2.39.5