Received: from eggs.gnu.org ([2001:4830:134:3::10]:51400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUbbI-0004r4-5N for qemu-devel@nongnu.org; Mon, 31 Mar 2014 08:46:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUbb8-00053E-W4 for qemu-devel@nongnu.org; Mon, 31 Mar 2014 08:46:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUbb8-000539-Nx for qemu-devel@nongnu.org; Mon, 31 Mar 2014 08:45:54 -0400 From: Markus Armbruster References: <1396187381-31618-1-git-send-email-kroosec@gmail.com> <1396246349.3108.1.camel@nilsson.home.kraxel.org> Date: Mon, 31 Mar 2014 14:45:49 +0200 In-Reply-To: <1396246349.3108.1.camel@nilsson.home.kraxel.org> (Gerd Hoffmann's message of "Mon, 31 Mar 2014 08:12:29 +0200") Message-ID: <87bnwmleo2.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] input: mouse_set should check input device type. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Hani Benhabiles , aliguori@amazon.com Gerd Hoffmann writes: >> + if (!(s->handler->mask & (INPUT_EVENT_MASK_REL | >> + INPUT_EVENT_MASK_ABS))) { >> + monitor_printf(mon, "Input device '%s' is not a mouse", >> + s->handler->name); > > That should be error_report (I think, Markus?). Yes, please. Same for the "Mouse at given index not found\n" message further down. Note that error_report() does *not* want \n. > > Otherwise the patch is fine. > > cheers, > Gerd