Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp540366ybt; Wed, 17 Jun 2020 07:39:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVq6f2DGZTmJWlRBxe+vBdSenu5qERgAAfOwFicVTFKuH738XAQaW/MBXIXP01SkvKdnnb X-Received: by 2002:a17:906:84a:: with SMTP id f10mr8257666ejd.102.1592404777412; Wed, 17 Jun 2020 07:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592404777; cv=none; d=google.com; s=arc-20160816; b=0SsNWieb5OEWxJJjRyg/g0Dng4UvETUX9UnQb9vnOBsCVQaT3DsRStloahqnkzTsgX 8sSqaeGLsPoV1EGm8LVGs48k5DyiTt8NfAWc2u5xz4u8h6WloCLxVbHsCejWRYFb2hof Ox3Dr7LYVBr6JXj/RfwV+N+e5AIUD1+fZDDaH0mb2S7P8cERrQ19dE5cAWjNQ7yBqHmY FPjH8B3okxh/snIJnvoup3T+ilEu4kHWJxkfxrLJ8wksWnIW1OksEPH2Y9LRkpvPTQZO uWqKAl5Abjt/FO4G3w+q62tPtSukC8y2A/1/leUw+P2ChIZ2aQZtP9vFAXLirumVSCfy EaYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=kxoLpiiXOMnVlUyOHHaorr9UTZFKp4wOvDlWxwqb25w=; b=TriCuXmEJ4kc+aiMZZKrr75GfykqCtfWro1oTUKIu+dNBqO9LHAL1yuWRsejN+Fx6I NLpXkpXFsKyE0PC89Rez3b/LrD0IHbmVQDiqS6uyWxXVHyICGhanEYKC4T5c3I2sP3/e sOEtTTdIohHtcrkwsqK/QyZ6RYvrhR7HNmizpDovoBB+To+To1WqxqpcSaSAdL4Vxxal zIGZycc5cY4Zyx+APol0UbWy8GhgU+okcFD6rIm6rgpeoRP41oCWhSyQ3oXeZPW1PjzO 7AZhDC2gFyk0/0jdRtW9x1h2psfGahojHCD/VuUSPtaHb2Wa/FI7WOvFpLEKgSy36NE5 /ofA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh22si24224ejb.481.2020.06.17.07.38.44; Wed, 17 Jun 2020 07:39:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727021AbgFQOg5 (ORCPT + 99 others); Wed, 17 Jun 2020 10:36:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgFQOgv (ORCPT ); Wed, 17 Jun 2020 10:36:51 -0400 Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8843BC06179B for ; Wed, 17 Jun 2020 07:36:50 -0700 (PDT) Received: from ramsan ([IPv6:2a02:1810:ac12:ed20:b57b:2191:a081:571d]) by xavier.telenet-ops.be with bizsmtp id sEcm2200K1Jlgh201EcmLE; Wed, 17 Jun 2020 16:36:47 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1jlZBG-0007pl-NJ; Wed, 17 Jun 2020 16:36:46 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1jlZBG-0004mO-LU; Wed, 17 Jun 2020 16:36:46 +0200 From: Geert Uytterhoeven To: Yoshinori Sato , Rich Felker Cc: Andrew Morton , Mike Rapoport , Dmitry Safonov <0x7f454c46@gmail.com>, Guenter Roeck , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 2/9] Revert "sh: add loglvl to printk_address()" Date: Wed, 17 Jun 2020 16:36:32 +0200 Message-Id: <20200617143639.18315-3-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200617143639.18315-1-geert+renesas@glider.be> References: <20200617143639.18315-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 2deebe4d56d638269a4a728086d64de5734b460a. printk_address() is always used as a continuation of the previous logging, hence it should not include a log level. Signed-off-by: Geert Uytterhoeven --- v2: - New. --- arch/sh/include/asm/kdebug.h | 3 +-- arch/sh/kernel/dumpstack.c | 6 +++--- arch/sh/mm/fault.c | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/sh/include/asm/kdebug.h b/arch/sh/include/asm/kdebug.h index 960545306afa4d93..de8693fabb1d95b5 100644 --- a/arch/sh/include/asm/kdebug.h +++ b/arch/sh/include/asm/kdebug.h @@ -12,8 +12,7 @@ enum die_val { }; /* arch/sh/kernel/dumpstack.c */ -extern void printk_address(unsigned long address, int reliable, - const char *loglvl); +extern void printk_address(unsigned long address, int reliable); extern void dump_mem(const char *str, const char *loglvl, unsigned long bottom, unsigned long top); diff --git a/arch/sh/kernel/dumpstack.c b/arch/sh/kernel/dumpstack.c index a13c045804ed1027..ad548fc976350c50 100644 --- a/arch/sh/kernel/dumpstack.c +++ b/arch/sh/kernel/dumpstack.c @@ -44,9 +44,9 @@ void dump_mem(const char *str, const char *loglvl, } } -void printk_address(unsigned long address, int reliable, const char *loglvl) +void printk_address(unsigned long address, int reliable) { - printk("%s [<%p>] %s%pS\n", loglvl, (void *) address, + printk(" [<%p>] %s%pS\n", (void *) address, reliable ? "" : "? ", (void *) address); } @@ -118,7 +118,7 @@ static int print_trace_stack(void *data, char *name) */ static void print_trace_address(void *data, unsigned long addr, int reliable) { - printk_address(addr, reliable, (char *)data); + printk_address(addr, reliable); } static const struct stacktrace_ops print_trace_ops = { diff --git a/arch/sh/mm/fault.c b/arch/sh/mm/fault.c index acd1c75994983825..92b1ce105f4b6c6f 100644 --- a/arch/sh/mm/fault.c +++ b/arch/sh/mm/fault.c @@ -213,7 +213,7 @@ show_fault_oops(struct pt_regs *regs, unsigned long address) : "paging request", address); pr_alert("PC:"); - printk_address(regs->pc, 1, KERN_ALERT); + printk_address(regs->pc, 1); show_pte(NULL, address); } -- 2.17.1