Received: from eggs.gnu.org ([140.186.70.92]:59473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFvd3-000225-FA for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:53:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFvd2-0004Yj-CC for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:53:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFvd1-0004Yf-W7 for qemu-devel@nongnu.org; Fri, 29 Apr 2011 17:53:36 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3TLrY4n029171 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Apr 2011 17:53:34 -0400 Date: Sat, 30 Apr 2011 00:53:28 +0300 From: Alon Levy Message-ID: <20110429215328.GB13837@amber.local> References: <1303979358-4421-1-git-send-email-alevy@redhat.com> <1303979358-4421-2-git-send-email-alevy@redhat.com> <4DBAA88C.6070702@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DBAA88C.6070702@redhat.com> Subject: Re: [Qemu-devel] [PATCHv2 1/4] qxl: interface_get_command: fix reported mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org 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: > >+ return "undefined"; > >+ case QXL_MODE_VGA: > >+ return "vga"; > >+ } > >+ return "unknown"; > > Make that "INVALID"? There never ever should be another move value ... True, will do. > > cheers, > Gerd