From patchwork Fri Jun 22 13:40:31 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: 933385 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="hIjR83rn"; 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 41C0QV0S3Cz9ryk for ; Fri, 22 Jun 2018 23:53:22 +1000 (AEST) Received: from localhost ([::1]:34107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMV5-00071i-LW for incoming@patchwork.ozlabs.org; Fri, 22 Jun 2018 09:53:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fWMJK-0006BT-ID for qemu-devel@nongnu.org; Fri, 22 Jun 2018 09:41:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fWMJJ-0003Vc-NZ for qemu-devel@nongnu.org; Fri, 22 Jun 2018 09:41:10 -0400 Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:43858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fWMJJ-0003UJ-GF; Fri, 22 Jun 2018 09:41:09 -0400 Received: by mail-qk0-x244.google.com with SMTP id s190-v6so3653711qke.10; Fri, 22 Jun 2018 06:41:09 -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=pfJpIm8zi7ra13uUzO7wM7N/UlRPWWku/UzRGCt+ygE=; b=hIjR83rnnsLlF+ejaBQQamvy1nrqUnmZiOCnFCxkCnET35TcALWssiK46ImVrKoM8p +KFjTM7cvhUZXmYlp4MXh0a07OAlZA/yO1BVcaEl13Bp5GblIeN70BkATtEP4HwiphGQ FHsrlMyfeMf7ik4eF8n75S0IFuxgyHoKYhtgiBWBorFNk+J4hsMsTDrhMMR5fObTR9iM BWkjpCe4nylrzCRy+oHHm/Sa0eVySzL/ciU2EfYN4VKPqLKW8VPZjfeWOrXJ8DyS0bfi k/Mj1FmJW1eJPbitt+ovNWI8X7TNdS6xQqfaC7mGyjVxHP93dVBd/wGtTud0zEkge8ND VfyQ== 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=pfJpIm8zi7ra13uUzO7wM7N/UlRPWWku/UzRGCt+ygE=; b=GhxUCG6pVCigfc8fpVTZrh3yQEuNmopLPsf+mkm2hVmoWJaDgI92SKZ+Ty4Oo/afmY xoJMQRYF0+/zeLcsGoJWd+AaSVQBVVavPa11GURy86kZJBJS+7MPb6a/UzUHYKCCTCcK LiMnrYULkK+Z28L0l2KlHborWag+Y29HleATRHXno9NcmkO8eC7eeJLu6jUT1kZyzx+p h/uZBDtw+B1Co7/nMFb0XiDglq8LeIaxUoMrVMIbrThUTbRJKHJKTdB8kYru+fOkYbN7 PWvjqpcNfPQV1HX4m7YJLlu3hjIw8f48TsdUZGMSzti5acTmYNal4pzdllSeflmaVLcf SVMg== X-Gm-Message-State: APt69E0Nxf25SA0b2exuTT+mvQ6ebF2O2YXu7rQNN+EMra7GA5aITTuN +a1kSDF3kRlE1kJ6YeigODc= X-Google-Smtp-Source: ADUXVKKkhcl+hbMXQYfbrcYSmNVFOgTpAETg5RDv4KUfKtNb5voozBLw4vJ3tAiJNSYNE0GQMSAc3w== X-Received: by 2002:a37:17e3:: with SMTP id 96-v6mr1329886qkx.304.1529674868892; Fri, 22 Jun 2018 06:41:08 -0700 (PDT) Received: from x1.local ([138.117.48.222]) by smtp.gmail.com with ESMTPSA id s39-v6sm6006629qts.42.2018.06.22.06.41.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jun 2018 06:41:08 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: Peter Maydell , Thomas Huth Date: Fri, 22 Jun 2018 10:40:31 -0300 Message-Id: <20180622134036.23182-10-f4bug@amsat.org> X-Mailer: git-send-email 2.18.0.rc2 In-Reply-To: <20180622134036.23182-1-f4bug@amsat.org> References: <20180622134036.23182-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 v2 09/14] hw/arm/omap: 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: qemu-trivial@nongnu.org, qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathi?= =?utf-8?b?ZXUtRGF1ZMOp?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Philippe Mathieu-Daudé --- include/hw/arm/omap.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index 39abba753d..3867687b8c 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -21,6 +21,7 @@ # define hw_omap_h "omap.h" #include "hw/irq.h" #include "target/arm/cpu-qom.h" +#include "qemu/log.h" # define OMAP_EMIFS_BASE 0x00000000 # define OMAP2_Q0_BASE 0x00000000 @@ -962,8 +963,8 @@ void omap_mpu_wakeup(void *opaque, int irq, int req); fprintf(stderr, "%s: Bad register " OMAP_FMT_plx "\n", \ __func__, paddr) # define OMAP_RO_REG(paddr) \ - fprintf(stderr, "%s: Read-only register " OMAP_FMT_plx "\n", \ - __func__, paddr) + qemu_log_mask(LOG_GUEST_ERROR, "%s: Read-only register " OMAP_FMT_plx \ + "\n", __func__, paddr) /* OMAP-specific Linux bootloader tags for the ATAG_BOARD area (Board-specifc tags are not here) */