From patchwork Sun Jun 24 04:05:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 933830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amsat.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UPKsU0Yt"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41CzKM5ZVZz9s1B for ; Sun, 24 Jun 2018 14:07:19 +1000 (AEST) Received: from localhost ([::1]:40477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWwJ3-0003k3-6y for incoming@patchwork.ozlabs.org; Sun, 24 Jun 2018 00:07:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWwII-0003jl-LI for qemu-devel@nongnu.org; Sun, 24 Jun 2018 00:06:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWwIG-0003hN-Jn for qemu-devel@nongnu.org; Sun, 24 Jun 2018 00:06:30 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:33878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWwIG-0003hF-FV; Sun, 24 Jun 2018 00:06:28 -0400 Received: by mail-qk0-x244.google.com with SMTP id b66-v6so348412qkj.1; Sat, 23 Jun 2018 21:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BXZ3TltxLVi5ZCRN6XIGUwCl7iIEoMwsENofQGK5k44=; b=UPKsU0YtaS2DkihuPbLpkfFWJ4rPwMuMw3k1g69eiwbCmb16JtsPu2szWtneWOcvcp vGhsD9SusZaXpo9byh0X0TolBWEsKID6uJDlKER1QAbPOjNbzSjo759xE0gtg+k+VjIU qIbszbsWNEKrzthVPrfGv6b2u+KDMadvos/A3czl1Gm8G5dkciNXtuyJny3mCVck8T6x qQ09eu3IZ3QUmQWnpM8hjscsX2UBDLUpmA71fTtgfbSO+ZxIZMRdHonoBULYhaq4RqM3 +wRF8jU69EnJrtuyAX8kaAf3KQ+OMTbXxi8nrkVixZStZUTAgx6tSoa6djlHM9yy8OqV 9SCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=BXZ3TltxLVi5ZCRN6XIGUwCl7iIEoMwsENofQGK5k44=; b=te1NsdSzVx6mLSefMjqtMYKC9CQAwB9/g73nDf9wM40OehFfR2oKromEDXy6HE1Hw2 t0exm3WQJe0/TvNVr7LQxOFr5ajw+/PaYRuTCgeOSu63Qq6HL83rHYgmI17geP2XSmc7 3P5pjiSF4r8wcp7qGhzjoIIg19hrDOAVcdwlT7GO3MxkD2tG29WswVWPN8gf2yCogtSb NM7Rai3IFV/88orzYvI2sxB0d/MwTUycKvrqB7BWXb5MnLoxME7ZGQGvDKRvJq3J1U49 KSSODpYFUlNZhtEusEoTTQp9vibVwUqCEKSkpYrfGEZ/FrxNhA7CyP00fdCIZ1P96+AU JOcw== X-Gm-Message-State: APt69E2Y9TeQ633pE3Eo7NKBo+RdvoKsh5OS2Oop5OH8Lr/PeWWoEUjY 7mF9uX/0lK2dbcATfmwa58g= X-Google-Smtp-Source: ADUXVKK7s4naWFyv6AzaWrTmgj/bUO2MNV+vHym56+3u/zEIhs+f9bbaqtWTfTPI0Bf6DC8yaEurcA== X-Received: by 2002:a37:9a95:: with SMTP id c143-v6mr6538756qke.378.1529813188026; Sat, 23 Jun 2018 21:06:28 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id d14-v6sm7145313qtn.90.2018.06.23.21.06.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Jun 2018 21:06:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Peter Maydell , Thomas Huth Date: Sun, 24 Jun 2018 01:05:54 -0300 Message-Id: <20180624040609.17572-2-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180624040609.17572-1-f4bug@amsat.org> References: <20180624040609.17572-1-f4bug@amsat.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::244 Subject: [Qemu-devel] [PATCH v3 01/16] hw/input/pckbd: Use qemu_log_mask(GUEST_ERROR) instead of fprintf X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Michael S. Tsirkin" , qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Paolo Bonzini Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/input/pckbd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c index f33e3fc63d..07c8801387 100644 --- a/hw/input/pckbd.c +++ b/hw/input/pckbd.c @@ -22,6 +22,7 @@ * THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "hw/hw.h" #include "hw/isa/isa.h" #include "hw/i386/pc.h" @@ -308,7 +309,8 @@ static void kbd_write_command(void *opaque, hwaddr addr, /* ignore that */ break; default: - fprintf(stderr, "qemu: unsupported keyboard cmd=0x%02x\n", (int)val); + qemu_log_mask(LOG_GUEST_ERROR, + "unsupported keyboard cmd=0x%02" PRIx64 "\n", val); break; } }