Patchwork [12/14] usb-redir: Set default debug level to warning

login
register
mail settings
Submitter Gerd Hoffmann
Date Nov. 16, 2012, 1:44 p.m.
Message ID <1353073487-19233-13-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/199638/
State New
Headers show

Comments

Gerd Hoffmann - Nov. 16, 2012, 1:44 p.m.
From: Hans de Goede <hdegoede@redhat.com>

The previous default of 0 means that even errors and warnings would not
get printed, which is really not a good default.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/redirect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 32ae103..0c95e6b 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1962,7 +1962,7 @@  static const VMStateDescription usbredir_vmstate = {
 
 static Property usbredir_properties[] = {
     DEFINE_PROP_CHR("chardev", USBRedirDevice, cs),
-    DEFINE_PROP_UINT8("debug", USBRedirDevice, debug, 0),
+    DEFINE_PROP_UINT8("debug", USBRedirDevice, debug, usbredirparser_warning),
     DEFINE_PROP_STRING("filter", USBRedirDevice, filter_str),
     DEFINE_PROP_INT32("bootindex", USBRedirDevice, bootindex, -1),
     DEFINE_PROP_END_OF_LIST(),