From patchwork Sun Feb 4 22:23:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 126823 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1481209ljc; Sun, 4 Feb 2018 14:27:36 -0800 (PST) X-Google-Smtp-Source: AH8x225B0SMy/xKYuBtKz2+ZtLT8rECWD6lx46jv4RPrf2ud5xd3zrhUDd71cz+D8JCaqRs1sC2Y X-Received: by 10.129.40.207 with SMTP id o198mr30663227ywo.320.1517783256243; Sun, 04 Feb 2018 14:27:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517783256; cv=none; d=google.com; s=arc-20160816; b=XL5k5yu+xHcm1LnOxcwcFBcjThi3a/zOpaxFBrWgbtZaNPbzQA8VgfvKj1nvYX03EG 8NN5z0yF+CJhyOfHr8O4SKLQtv2n5XH3vAmybnDzUBKq8wj1xpbaFLS0KtoRyj5ZfWmA Ogbovl8jePeMNMiW7sUDM8Psp1ZFItE9ckYmNypv88k3xP4enj3MoHt5MAY/JmWw59vU F1jpnfSGn+S9gHjV/HzVKwF+9rFOL1uz4F8MJZdZsboQa2+xR0ZGgEDL0cZ74EyguSFr kz6XYcZWrN5LvNxULcpaHQ8MzaYyLxpJxCqKXcTmo73zZ5DBMwXYjRd2Vt2UR80khF7G W8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=Jd7+fHXWNCsmuycfw2Zu80q5i6PQt531+WudHokYSZE=; b=tzlIMy8W9Gt+hRjicVkYxW/GBQS1hunJB+gkZog7TmKAcOyDIwl1XFVZEMBwGpcLIQ zPxWNqGv/k+U+e8/7F2HXoQTFbTZKDB3kk9LyaE9sAypcdZBilwvLKIx63LOy1Agy2yd qtDHbd5eq7l+gXb+3eR5CSrkBs/O7stQVZThrwSE1fyxRHB8rONCn5w8npeZyYYbmgWR gyy9+Moz+eEfLc8S4xjIfe4fkw5PmWGcAA0luPwZRkYxsXPx4V+JUL0Zxfz5X+UewpKd NaWT+l4YOczSbAhDsrKavNbYe9jymVy92fGSJ25Y1t/xRxfKOvOHdabYX+6S09hd/08N 16Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=g0oeWQhj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n10si1302341ywm.555.2018.02.04.14.27.36 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 04 Feb 2018 14:27:36 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=g0oeWQhj; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiSl5-0007js-Ny for patch@linaro.org; Sun, 04 Feb 2018 17:27:35 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiShh-0005ny-DW for qemu-devel@nongnu.org; Sun, 04 Feb 2018 17:24:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiShe-00068B-Ci for qemu-devel@nongnu.org; Sun, 04 Feb 2018 17:24:05 -0500 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]:33988) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiShe-00067U-6n for qemu-devel@nongnu.org; Sun, 04 Feb 2018 17:24:02 -0500 Received: by mail-pg0-x241.google.com with SMTP id s73so2534626pgc.1 for ; Sun, 04 Feb 2018 14:24:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jd7+fHXWNCsmuycfw2Zu80q5i6PQt531+WudHokYSZE=; b=g0oeWQhjEuJ3ERssbKf+qO5J6N+6QolwFzAAd7ZFaQgdW+Q8HOrEo5W3M+QMiYngX0 jH3PAQUycQ/ZxKfzgUAZtCWSHd9fcffH1Sx7fFDSyaj+NBKxBmbNWvC6OC/YGs9lbtmZ MTbtDPfQ4KTztyEytf9fAhVbvIU3eJIBjV7Hw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jd7+fHXWNCsmuycfw2Zu80q5i6PQt531+WudHokYSZE=; b=HMAXq3Ypdqu1lvB492Hw006zb7Aal4F39sCA4Ol6kZ3UNpJhkJe7AEkJXLl4xHR/G+ 9rWA6v637RnYK1QRKV2vBd3rsx0wkUFBM8lSmHFCRrd7xyw0KvWTy0iaIYCinP2blwBP k2qxyJxmRbvxBq2glIXdU3/e2PRwGeXF0kAHSoQU3lTQyhd6pDhZT4H7/N+tNNX1apL2 +j3nERm8+HjtyD7NBwg8C/9jy21HI4EvMoHpqezWdUexl3aG0oXPRd0I3NFAFOcFXGmq ZB4IyG67nMz32dIynMVHg53ZUmIGyTEQdXtGKBMTDHHpWtji/IoOg9+DvyM/JiJs/1D1 wGWA== X-Gm-Message-State: AKwxytfGGUbTRVp7/AShq8QtjzbUOTZLVez4NMr24GqvHcjq5OynSHW6 P3S/ZeTgYDIkKAhtf+zBiUNG8bO7XKU= X-Received: by 10.99.65.65 with SMTP id o62mr32469142pga.392.1517783040858; Sun, 04 Feb 2018 14:24:00 -0800 (PST) Received: from cloudburst.twiddle.net (174-21-6-47.tukw.qwest.net. [174.21.6.47]) by smtp.gmail.com with ESMTPSA id o82sm16223662pfj.73.2018.02.04.14.23.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Feb 2018 14:23:59 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 4 Feb 2018 14:23:54 -0800 Message-Id: <20180204222356.14546-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180204222356.14546-1-richard.henderson@linaro.org> References: <20180204222356.14546-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::241 Subject: [Qemu-devel] [PULL 1/3] hw/hppa: Use qemu_log_mask instead of fprintf to stderr 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: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Reviewed-by: Alex Bennée Reported-by: Thomas Huth Signed-off-by: Richard Henderson --- hw/hppa/machine.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) -- 2.14.3 diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index afd3867313..19033e268d 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -19,6 +19,7 @@ #include "hw/hppa/hppa_sys.h" #include "qemu/cutils.h" #include "qapi/error.h" +#include "qemu/log.h" #define MAX_IDE_BUS 2 @@ -111,7 +112,6 @@ static void machine_hppa_init(MachineState *machine) uint32_t addr = DINO_UART_HPA + 0x800; serial_mm_init(addr_space, addr, 0, serial_irq, 115200, serial_hds[0], DEVICE_BIG_ENDIAN); - fprintf(stderr, "Serial port created at 0x%x\n", addr); } /* SCSI disk setup. */ @@ -146,9 +146,9 @@ static void machine_hppa_init(MachineState *machine) error_report("could not load firmware '%s'", firmware_filename); exit(1); } - fprintf(stderr, "Firmware loaded at 0x%08" PRIx64 "-0x%08" PRIx64 - ", entry at 0x%08" PRIx64 ".\n", - firmware_low, firmware_high, firmware_entry); + qemu_log_mask(CPU_LOG_PAGE, "Firmware loaded at 0x%08" PRIx64 + "-0x%08" PRIx64 ", entry at 0x%08" PRIx64 ".\n", + firmware_low, firmware_high, firmware_entry); if (firmware_low < ram_size || firmware_high >= FIRMWARE_END) { error_report("Firmware overlaps with memory or IO space"); exit(1); @@ -163,7 +163,6 @@ static void machine_hppa_init(MachineState *machine) /* Load kernel */ if (kernel_filename) { - fprintf(stderr, "LOADING kernel '%s'\n", kernel_filename); size = load_elf(kernel_filename, &cpu_hppa_to_phys, NULL, &kernel_entry, &kernel_low, &kernel_high, true, EM_PARISC, 0, 0); @@ -177,10 +176,10 @@ static void machine_hppa_init(MachineState *machine) error_report("could not load kernel '%s'", kernel_filename); exit(1); } - - fprintf(stderr, "Kernel loaded at 0x%08" PRIx64 "-0x%08" PRIx64 - ", entry at 0x%08" PRIx64 ", size %ld kB.\n", - kernel_low, kernel_high, kernel_entry, size / 1024); + qemu_log_mask(CPU_LOG_PAGE, "Kernel loaded at 0x%08" PRIx64 + "-0x%08" PRIx64 ", entry at 0x%08" PRIx64 + ", size %ld kB.\n", + kernel_low, kernel_high, kernel_entry, size / 1024); if (kernel_cmdline) { cpu[0]->env.gr[24] = 0x4000;