[pve-devel] [PATCH ha-manager 3/5] output watchdog module name if it gets loaded

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jan 11 13:20:16 CET 2016


If /dev/watchdog is not present and a WATCHDOG_MODULE env variable
is set, output it's name before trying to load it (helps debugging).

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/watchdog-mux.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/watchdog-mux.c b/src/watchdog-mux.c
index 16eef64..46046ed 100644
--- a/src/watchdog-mux.c
+++ b/src/watchdog-mux.c
@@ -125,6 +125,7 @@ main(void)
                 perror("assemble modprobe command failed");
                 exit(EXIT_FAILURE);
             }
+            fprintf(stderr, "Loading watchdog module '%s'\n", wd_module);
             system(cmd);
         } else {
             system("modprobe -q softdog"); // load softdog by default
-- 
2.1.4





More information about the pve-devel mailing list