Skip to contentSkip to conversation

xl: log domain suspension

PATCH New Ian Campbell 1 participant 1 message Jul 15, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xl: log domain suspension

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1310735501 -3600
# Node ID b4959a9105ef33b4440ec02b95e6ee2f5b26da1d # Parent b719c752f2431c76e9f1e366e7c2947e6504d24a
xl: log domain suspension.

Other shutdown reasons all end up saying something useful while suspend does not. With this patch the log looks like:
Domain 670 is dead
Domain has suspended.
Done. Exiting now

tools/libxl/xl_cmdimpl.c +1 -0
diff -r b719c752f243 -r b4959a9105ef tools/libxl/xl_cmdimpl.c
@@ -1104,6 +1104,7 @@ static int handle_domain_death(libxl_ctx
         action = d_config->on_reboot;
         break;
     case SHUTDOWN_suspend:
+        LOG("Domain has suspended.");
         return 0;
     case SHUTDOWN_crash:
         action = d_config->on_crash;