From c1bb2a4d8c8ec66c72da3ec080f23b1f858a66af Mon Sep 17 00:00:00 2001 From: "Gao,Yan" Date: Mon, 28 Jun 2021 13:35:56 +0200 Subject: [PATCH] Log: sbd-inquisitor: tell the actual watchdog device specified with `-w` --- src/sbd-inquisitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbd-inquisitor.c b/src/sbd-inquisitor.c index 53ddfa3..2cf09ac 100644 --- a/src/sbd-inquisitor.c +++ b/src/sbd-inquisitor.c @@ -1042,10 +1042,10 @@ int main(int argc, char **argv, char **envp) W_count++; break; case 'w': - cl_log(LOG_NOTICE, "Using watchdog device '%s'", watchdogdev); free(watchdogdev); watchdogdev = strdup(optarg); watchdogdev_is_default = false; + cl_log(LOG_NOTICE, "Using watchdog device '%s'", watchdogdev); break; case 'd': #if SUPPORT_SHARED_DISK -- 1.8.3.1