Skip to contentSkip to conversation

libxc: silence HVM domain creation messages

PATCH In review Matthew Daley 2 participants 2 messages Aug 14, 2013 – Aug 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc: silence HVM domain creation messages

There's no need for xl to output these messages on HVM domain creation to stderr by default.

Change their loglevels from XTL_INFO to XTL_DETAIL; then the messages output by xl are the same as those for PV domain creation. These now-silenced messages can still be seen using verbose (-v) mode.

---
 tools/libxc/xc_hvm_build_x86.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/libxc/xc_hvm_build_x86.c +2 -2
index 8bb0178..77bd365 100644
@@ -281,7 +281,7 @@ static int setup_guest(xc_interface *xch,
         goto error_out;
     }
 
-    IPRINTF("VIRTUAL MEMORY ARRANGEMENT:\n"
+    DPRINTF("VIRTUAL MEMORY ARRANGEMENT:\n"
             "  Loader:        %016"PRIx64"->%016"PRIx64"\n"
             "  Modules:       %016"PRIx64"->%016"PRIx64"\n"
             "  TOTAL:         %016"PRIx64"->%016"PRIx64"\n"
@@ -443,7 +443,7 @@ static int setup_guest(xc_interface *xch,
         goto error_out;
     }
 
-    IPRINTF("PHYSICAL MEMORY ALLOCATION:\n"
+    DPRINTF("PHYSICAL MEMORY ALLOCATION:\n"
             "  4KB PAGES: 0x%016lx\n"
             "  2MB PAGES: 0x%016lx\n"
             "  1GB PAGES: 0x%016lx\n",
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 8 lines · Matthew Daley

There's no need for xl to output these messages on HVM domain creation to stderr by default.

Change their loglevels from XTL_INFO to XTL_DETAIL; then the messages output by xl are the same as those for PV domain creation. These now-silenced messages can still be seen using verbose (-v) mode.

acked + applied, thanks.