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.
Signed-off-by: Matthew Daley <mattjd@gmail.com>
---
tools/libxc/xc_hvm_build_x86.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/libxc/xc_hvm_build_x86.c b/tools/libxc/xc_hvm_build_x86.c
index 8bb0178..77bd365 100644
--- a/tools/libxc/xc_hvm_build_x86.c
+++ b/tools/libxc/xc_hvm_build_x86.c
@@ -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",
--
1.7.10.4
Ian Campbell
2013-Aug-20 15:03 UTC
Re: [PATCH] libxc: silence HVM domain creation messages
On Thu, 2013-08-15 at 10:20 +1200, Matthew Daley wrote:> 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. > > Signed-off-by: Matthew Daley <mattjd@gmail.com>acked + applied, thanks.