From patchwork Wed Apr 16 04:33:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ??? X-Patchwork-Id: 3997661 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BB522C0DA2 for ; Wed, 16 Apr 2014 04:33:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E9C9120222 for ; Wed, 16 Apr 2014 04:33:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F42620259 for ; Wed, 16 Apr 2014 04:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752459AbaDPEdQ (ORCPT ); Wed, 16 Apr 2014 00:33:16 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:41765 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750919AbaDPEdN (ORCPT ); Wed, 16 Apr 2014 00:33:13 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4300L5MWNCV460@mailout2.samsung.com>; Wed, 16 Apr 2014 13:33:12 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 75.3C.14803.7080E435; Wed, 16 Apr 2014 13:33:11 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-63-534e0807aa50 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A5.DA.29263.7080E435; Wed, 16 Apr 2014 13:33:11 +0900 (KST) Received: from DOJAYSLEE01 ([12.36.166.151]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4300IMVWNBTU00@mmp1.samsung.com>; Wed, 16 Apr 2014 13:33:11 +0900 (KST) From: Jungseok Lee To: linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, Catalin.Marinas@arm.com, Marc Zyngier , Christoffer Dall Cc: linux-kernel@vger.kernel.org, linux-samsung-soc , steve.capper@linaro.org, sungjinn.chung@samsung.com, Arnd Bergmann , kgene.kim@samsung.com, ilho215.lee@samsung.com Subject: [PATCH v2 1/7] arm64: Use pr_* instead of printk Date: Wed, 16 Apr 2014 13:33:11 +0900 Message-id: <004101cf592c$f9981340$ecc839c0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac9ZKwMaX7e3+KCtSvG/waZBrt4v+g== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsVy+t8zQ112Dr9gg46lFhZ/Jx1jt3i/rIfR 4sXrf4wWR/8tZLToXXCVzeLjqePsFpseX2O1uLxrDpvFjPP7mCz+3vnHZrFi3jI2iw8zVjI6 8HismbeG0eP3r0mMHneu7WHzOL9pDbPH5iX1Hn1bVjF6fN4kF8AexWWTkpqTWZZapG+XwJWx 98tzloLNQhXzT1xhb2C8z9fFyMkhIWAicXzRAXYIW0ziwr31bF2MXBxCAssYJSYfeATkcIAV Hf5uBhFfxChxb99CVgjnD6PElsONjCDdbAKaEo/u9rCDJEQEdgB1r10EVsUs8JBR4ufb/cwg VcIClhILDr5gBxnLIqAq8ahPCiTMCxJ+f5IJwhaU+DH5HguIzSygJbF+53EmCFteYvOat8wQ pypI7Dj7mhFkjIiAnsTLVRUQJSIS+168YwRZKyHQySFx4WEb2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eHhn5PgGC7EmlhVX 5h5ilOBgVhLh/fIFKMSbklhZlVqUH19UmpNafIgxGejPicxSosn5wGSWVxJvaGxiZmRpZGZh ZGJuTpqwkjjvgVbrQCGB9MSS1OzU1ILUIpgtTBycUg2M51WZPVKcn21q+Zjx3Xn6MhMTV7vs pVPYTFg5TDNf+6U94dG/u5mr+lq6+AVvcYd7K0vuKqUG/rKfV/vq7JL6xf+E1vZefdhTuPiy 64+4WIngpICQyNbcrSu9rnuyLZv3N+AAt4e70u2c8zP4J627pqfr6cfzYb2Q7/EX0kdXsr5e yJX+9nueEktxRqKhFnNRcSIAUB2iKlwDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixed the following checkpatch complaint as using pr_* instead of printk. WARNING: printk() should include KERN_ facility level Signed-off-by: Jungseok Lee Reviewed-by: Sungjinn Chung --- arch/arm64/kernel/traps.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 7ffaddd..0484e81 100644 --- a/arch/arm64/kernel/traps.c +++ b/arch/arm64/kernel/traps.c @@ -65,7 +65,7 @@ static void dump_mem(const char *lvl, const char *str, unsigned long bottom, fs = get_fs(); set_fs(KERNEL_DS); - printk("%s%s(0x%016lx to 0x%016lx)\n", lvl, str, bottom, top); + pr_emerg("%s%s(0x%016lx to 0x%016lx)\n", lvl, str, bottom, top); for (first = bottom & ~31; first < top; first += 32) { unsigned long p; @@ -83,7 +83,7 @@ static void dump_mem(const char *lvl, const char *str, unsigned long bottom, sprintf(str + i * 9, " ????????"); } } - printk("%s%04lx:%s\n", lvl, first & 0xffff, str); + pr_emerg("%s%04lx:%s\n", lvl, first & 0xffff, str); } set_fs(fs); @@ -124,7 +124,7 @@ static void dump_instr(const char *lvl, struct pt_regs *regs) break; } } - printk("%sCode: %s\n", lvl, str); + pr_emerg("%sCode: %s\n", lvl, str); set_fs(fs); } @@ -156,7 +156,7 @@ static void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk) frame.pc = thread_saved_pc(tsk); } - printk("Call trace:\n"); + pr_emerg("Call trace:\n"); while (1) { unsigned long where = frame.pc; int ret; @@ -328,17 +328,17 @@ asmlinkage void bad_mode(struct pt_regs *regs, int reason, unsigned int esr) void __pte_error(const char *file, int line, unsigned long val) { - printk("%s:%d: bad pte %016lx.\n", file, line, val); + pr_crit("%s:%d: bad pte %016lx.\n", file, line, val); } void __pmd_error(const char *file, int line, unsigned long val) { - printk("%s:%d: bad pmd %016lx.\n", file, line, val); + pr_crit("%s:%d: bad pmd %016lx.\n", file, line, val); } void __pgd_error(const char *file, int line, unsigned long val) { - printk("%s:%d: bad pgd %016lx.\n", file, line, val); + pr_crit("%s:%d: bad pgd %016lx.\n", file, line, val); } void __init trap_init(void)