From patchwork Thu Dec 14 22:39:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 10113401 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4209D60352 for ; Thu, 14 Dec 2017 22:39:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33A1D29D37 for ; Thu, 14 Dec 2017 22:39:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 27BD629D41; Thu, 14 Dec 2017 22:39:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB02C29D37 for ; Thu, 14 Dec 2017 22:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=7rkZiXlzFdK/7k39o29KVYogmcmJhvHpPQL8Ddt+080=; b=XTp YGiMijpN2C1JjIL4vE8lzNPSUpNTXfSyWgSncPWI/3CLvW/ZArTE/T0BlTi0EA9V6Zg/tIet7O6hC 2083cKxlrBnkRHw8BwBWASFzjNJBVuDHraduAZVKlBovvw3ysCXDZ0IofwzSODciDPgl7Aioy5a0Z 9hI3I//oQphGBrjs4BCuBbFh90eSS5BXo6GAwCjsPvRR+rFQ7H+Fx/P+sjuN0yvY7Gzemx0yXh5JM 6Rf6AYdZT1MIEJ8dCWA9feEulVwOabF+47r7NQFu1o/pZR9N5luyASK2hP1FjWfi0IgpAE3LkhP2S Dt6wtX/w37p855XqNhpi4HaljwzHJXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ePcAV-0001Ly-Vr; Thu, 14 Dec 2017 22:39:55 +0000 Received: from mail-oi0-f68.google.com ([209.85.218.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ePcAR-00016l-Vm for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2017 22:39:53 +0000 Received: by mail-oi0-f68.google.com with SMTP id r63so4988864oia.6 for ; Thu, 14 Dec 2017 14:39:30 -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; bh=hEivFkM/VngCQRP3X/AQczp0xbe02/RT7NPdpThIzNo=; b=h+mzye7C3IDYI+4veaNJgr2BS+EKEPQCdV7Bf7XwFoNyE+vfQh+zS7GHrF8C64yVdn nXLz4Xi9uZAaV6jwrJtiWONJuzmNB9qhcR3XRmk5kFaHZgYUs6kJ4pUM4zYsW04lGOns 16J2yfxB/bOOOtWkB+thGWsMMWzhe4ZXgbXsTFtR4m2W9eGfybJI0BbVvW0BcPV+EaHs Vr6DnF0mAxW2aAfnrRgzFyy0Urv6wDW+nnwzm0ejeJW88pxwObOzrtkv480te66sRG8x uRi6QNCayne2iab86s+o7RcsHl+Mo0IhpBgsTLsijMfXHqrtJVmYxXtE7wi+9OCwCPN5 lUCQ== X-Gm-Message-State: AKGB3mIPz8gpAv3em1R2WTMlDhquqKg0bLRtVurQKwlROmMYN0GL+aWf V/v5Qeei12xbtABhwR6DkKYHFw== X-Google-Smtp-Source: ACJfBotSwmJHFda2Nh09DrZZepFvxSevb7bjWDPPXDeVeizSfZcQGWwFESJxM9gPUBl5NNZugOTO+A== X-Received: by 10.202.50.67 with SMTP id y64mr5587713oiy.323.1513291170155; Thu, 14 Dec 2017 14:39:30 -0800 (PST) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc::4670]) by smtp.gmail.com with ESMTPSA id g3sm2514543otc.25.2017.12.14.14.39.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Dec 2017 14:39:28 -0800 (PST) From: Laura Abbott To: Will Deacon , Mark Rutland , Catalin Marinas Subject: [RFC][PATCH] arm64: Switch to %px for printing some addresses at bootup Date: Thu, 14 Dec 2017 14:39:14 -0800 Message-Id: <20171214223914.12532-1-labbott@redhat.com> X-Mailer: git-send-email 2.14.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171214_143952_109738_87955943 X-CRM114-Status: UNSURE ( 7.44 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laura Abbott , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kees Cook MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP With the move to stricter %p printing, several of the addresses are no longer printed out. Switch to %px so they always get printed. Signed-off-by: Laura Abbott --- I'll admit to finding the new %p restrictions particularly irritating here because I like seeing the print out of the virtual addresses for debugging and checking. It might also be worth discussing whether we should be printing anything out? --- arch/arm64/mm/init.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 5960bef0170d..9be53e050f50 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -613,15 +613,15 @@ void __init mem_init(void) MLM(MODULES_VADDR, MODULES_END)); pr_notice(" vmalloc : 0x%16lx - 0x%16lx (%6ld GB)\n", MLG(VMALLOC_START, VMALLOC_END)); - pr_notice(" .text : 0x%p" " - 0x%p" " (%6ld KB)\n", + pr_notice(" .text : 0x%px" " - 0x%px" " (%6ld KB)\n", MLK_ROUNDUP(_text, _etext)); - pr_notice(" .rodata : 0x%p" " - 0x%p" " (%6ld KB)\n", + pr_notice(" .rodata : 0x%px" " - 0x%px" " (%6ld KB)\n", MLK_ROUNDUP(__start_rodata, __init_begin)); - pr_notice(" .init : 0x%p" " - 0x%p" " (%6ld KB)\n", + pr_notice(" .init : 0x%px" " - 0x%px" " (%6ld KB)\n", MLK_ROUNDUP(__init_begin, __init_end)); - pr_notice(" .data : 0x%p" " - 0x%p" " (%6ld KB)\n", + pr_notice(" .data : 0x%px" " - 0x%px" " (%6ld KB)\n", MLK_ROUNDUP(_sdata, _edata)); - pr_notice(" .bss : 0x%p" " - 0x%p" " (%6ld KB)\n", + pr_notice(" .bss : 0x%px" " - 0x%px" " (%6ld KB)\n", MLK_ROUNDUP(__bss_start, __bss_stop)); pr_notice(" fixed : 0x%16lx - 0x%16lx (%6ld KB)\n", MLK(FIXADDR_START, FIXADDR_TOP));