On Fri, Apr 29, 2011 at 02:01:16PM +0200, Gerd Hoffmann wrote:
> >+static const char *qxl_mode_to_string(int mode)
> >+{
> >+switch (mode) {
> >+case QXL_MODE_COMPAT:
> >+return "compat";
> >+case QXL_MODE_NATIVE:
> >+return "native";
> >+case QXL_MODE_UNDEFINED:
> >
+static const char *qxl_mode_to_string(int mode)
+{
+switch (mode) {
+case QXL_MODE_COMPAT:
+return "compat";
+case QXL_MODE_NATIVE:
+return "native";
+case QXL_MODE_UNDEFINED:
+return "undefined";
+case QXL_MODE_VGA:
+return "vga";
+}
+r
report correct mode when in undefined mode.
---
hw/qxl.c | 18 --
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/hw/qxl.c b/hw/qxl.c
index fe4212b..63e295b 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -336,6 +336,21 @@ static void interface_get_init_info(QXLInstance *