|
From: | Gerd Hoffmann |
Subject: | Re: [Qemu-devel] [PATCHv2 1/4] qxl: interface_get_command: fix reported mode |
Date: | Fri, 29 Apr 2011 14:01:16 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110318 Red Hat/3.1.9-3.el6_0 Thunderbird/3.1.9 |
+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"; + } + return "unknown";
Make that "INVALID"? There never ever should be another move value ... cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |