Skip to contentSkip to conversation

Remove debug message printed when you use -initrd

PATCH In review Richard W.M. Jones 2 participants 3 messages Apr 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove debug message printed when you use -initrd

I wonder if we could remove this annoying debug message, which is printed unconditionally whenever someone uses the -initrd command line option.

Rich.

Signature · 4 lines
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
pc.c +0 -3
Index: hw/pc.c
===================================================================
@@ -649,9 +649,6 @@
 	initrd_size = get_file_size(fi);
 	initrd_addr = (initrd_max-initrd_size) & ~4095;
 
-        fprintf(stderr, "qemu: loading initrd (%#x bytes) at 0x" TARGET_FMT_plx
-                "\n", initrd_size, initrd_addr);
-
 	if (!fread_targphys_ok(initrd_addr, initrd_size, fi)) {
 	    fprintf(stderr, "qemu: read error on initial ram disk '%s'\n",
 		    initrd_filename);
#1 lore raw
Quoted 6 lines · Richard W.M. Jones

I wonder if we could remove this annoying debug message, which is printed unconditionally whenever someone uses the -initrd command line option.

Rich.

Needs a Signed-off-by.

Regards,

Anthony Liguori

#2 lore raw
Quoted 9 lines · Anthony Liguori
Quoted 6 lines · Richard W.M. Jones

I wonder if we could remove this annoying debug message, which is printed unconditionally whenever someone uses the -initrd command line option.

Rich.

Needs a Signed-off-by.

I always forget it! Is this OK?

Rich.

Signature · 4 lines
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top
pc.c +0 -3
Index: hw/pc.c
===================================================================
@@ -649,9 +649,6 @@
 	initrd_size = get_file_size(fi);
 	initrd_addr = (initrd_max-initrd_size) & ~4095;
 
-        fprintf(stderr, "qemu: loading initrd (%#x bytes) at 0x" TARGET_FMT_plx
-                "\n", initrd_size, initrd_addr);
-
 	if (!fread_targphys_ok(initrd_addr, initrd_size, fi)) {
 	    fprintf(stderr, "qemu: read error on initial ram disk '%s'\n",
 		    initrd_filename);