Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3173489imu; Fri, 18 Jan 2019 06:07:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6TmBlE310SFq22mphPkgC6isptwUTwIE1zj7BNBcpBf1e/ePQAX2p3E9sGaFav9WiyUlCF X-Received: by 2002:a17:902:2aa8:: with SMTP id j37mr18615538plb.226.1547820449885; Fri, 18 Jan 2019 06:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547820449; cv=none; d=google.com; s=arc-20160816; b=CwfHKElELyglBapuiSLRKTIOQKFxdPgP/IisqrNqWvytuymd9riTshHHlS6zWo5eKM Nm9kPyefGFNmn+PZ8Ir36mizqDfQhdlrUSlY0Z4wnDTuJB4ese+fExW7Vew4N2CykMSq RB1BPW1mDMmMG1nt+uSwVFNJpwz0mIRuGja1KVkMUX1NKzKOTuo+lWnEC+uKQtOhiAc3 Rmn746Y9tJSRl20tCVgciX1tB9gJXXqRtas6AEoVnJ7P/klhVqryYp695Bo/OOSCcnAv tEHrHDN3xbq62Y6V27jQkxHcFDXFe96zqrKYyZwwbaTk3LepTBgOI7x0EnXNM3l9b1+A uIdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cmUXM58BMaiJjpGLA3Yxvgez8I0gKgtgs8JTbgTggBI=; b=zlSqGSxesMUiLgrVuCOGlSST1Rw6GNZHGa7tGHgEoDZW/iC0/fyUyuIJQzMI7mEuvP pIh+DEIWPtlOnEREkISyPM0VifoDbUPpRRMd+N6blp9BjL1hPTDE/xjOlp2ce695yIcj RSYstvfe8xCw7dZA5wrxe0xE90fg1AohjRIrnu2oOUyJKfH+X6Efq2g9RJXhoT8C2wQ5 Uxq1f6uHpa8ZX/mSP/ntoGv+yILAW3rQDZl4BO4JU6ZkUMy+NJrugJO1eJKyQUdhLo/f s865V96a0NCrexMOs+utjP2vDIfOUdl4BZsW4NingaJ4ymoojBPnOu0xsOARp7x8WwBm pDaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t61si4670680plb.339.2019.01.18.06.07.04; Fri, 18 Jan 2019 06:07:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727758AbfAROEi (ORCPT + 99 others); Fri, 18 Jan 2019 09:04:38 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39071 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727080AbfAROEi (ORCPT ); Fri, 18 Jan 2019 09:04:38 -0500 Received: by mail-lf1-f65.google.com with SMTP id n18so10562996lfh.6 for ; Fri, 18 Jan 2019 06:04:36 -0800 (PST) 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=cmUXM58BMaiJjpGLA3Yxvgez8I0gKgtgs8JTbgTggBI=; b=Mtrg5xhwX+xtYflqI5wjV7u3EBeoEUIa82EYuGb9I8TEXbaiTgHgxcDs6jlzByC4ly +3lKUYJq21+G4j6YFO75ajjd7GsO2XvNuoTHBD3KhopzfmyQjARUatElmzMpdXXpd8K6 ltqE/Xyr6kQN1f8CJUyM6jCt+BFjp2Lypke7nDm3zIQFMQJyi9T97dYIQ5Af7gGuddAL BTH8focg3UPnc6A8pdJ+3djAQuvimfINGjwApB6DXzVH8uXcQ+PN+/FB04/yOXYawlVr mXH0l06f6ZGYKregDGI6uEIhlaY6pwVnogqytLS5mkors3fgxEOC5nj9d9wXDi35YPB2 LHog== X-Gm-Message-State: AJcUukeDA5E+qTJNbD1xg42rc1cj0d6umNuS1I6Sj/VtG4DBNJDBsrhP HBpKPUZXC6CGCjf+OG8ztpo= X-Received: by 2002:ac2:4194:: with SMTP id z20mr7107719lfh.74.1547820276099; Fri, 18 Jan 2019 06:04:36 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id g85-v6sm765405lji.17.2019.01.18.06.04.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 06:04:35 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gkUlB-0002Vv-8r; Fri, 18 Jan 2019 15:04:37 +0100 From: Johan Hovold To: Palmer Dabbelt Cc: Albert Ou , Andreas Schwab , Atish Patra , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/5] riscv: use pr_info and friends Date: Fri, 18 Jan 2019 15:03:05 +0100 Message-Id: <20190118140308.9599-3-johan@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190118140308.9599-1-johan@kernel.org> References: <20190118140308.9599-1-johan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the pr_info and pr_err macros instead of printk with explicit log levels. Signed-off-by: Johan Hovold --- arch/riscv/kernel/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c index 6e079e94b638..5c15bb0560ee 100644 --- a/arch/riscv/kernel/setup.c +++ b/arch/riscv/kernel/setup.c @@ -76,11 +76,11 @@ static void __init setup_initrd(void) unsigned long size; if (initrd_start >= initrd_end) { - printk(KERN_INFO "initrd not found or empty"); + pr_info("initrd not found or empty"); goto disable; } if (__pa(initrd_end) > PFN_PHYS(max_low_pfn)) { - printk(KERN_ERR "initrd extends beyond end of memory"); + pr_err("initrd extends beyond end of memory"); goto disable; } @@ -88,7 +88,7 @@ static void __init setup_initrd(void) memblock_reserve(__pa(initrd_start), size); initrd_below_start_ok = 1; - printk(KERN_INFO "Initial ramdisk at: 0x%p (%lu bytes)\n", + pr_info("Initial ramdisk at: 0x%p (%lu bytes)\n", (void *)(initrd_start), size); return; disable: -- 2.20.1