Skip to contentSkip to conversation

libxl: do not log lack of guest support for suspend event channel

PATCH New Ian Campbell 1 participant 1 message Sep 2, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxl: do not log lack of guest support for suspend event channel

# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1283444777 -3600
# Node ID ff636f6a2fcb846ebd9002b4f339d2c44a45c1b2
# Parent 4f93c55a488c7cdde0bdcf2235f8de1b7c80a1af
libxl: do not log lack of guest support for suspend event channel

Implementation of the suspend event channel is completely optional for a guest so do not log this normal occurrence.

tools/libxl/libxl_dom.c +1 -3
diff -r 4f93c55a488c -r ff636f6a2fcb tools/libxl/libxl_dom.c
@@ -378,9 +378,7 @@ int core_suspend(libxl_ctx *ctx, uint32_
     if (si.xce > 0) {
         port = xs_suspend_evtchn_port(si.domid);
 
-        if (port < 0) {
-            XL_LOG(ctx, XL_LOG_WARNING, "Failed to get the suspend evtchn port");
-        } else {
+        if (port >= 0) {
             si.suspend_eventchn = xc_suspend_evtchn_init(ctx->xch, si.xce, si.domid, port);
 
             if (si.suspend_eventchn < 0)