aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-02-15 08:31:37 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-15 09:20:22 -0500
commit29a38193c15bd72ba96c57a805443ef46ea6a6ac (patch)
treeb4367269a4bfb5b75537605c5191fe4828b62437 /arch/arm/kernel
parent410f14837a92177242a403c20d0a0906fe357019 (diff)
ARM: 6674/1: LPAE: use long long format when printing physical addresses and ptes
For the Kernel to support 2 level and 3 level page tables, physical addresses (and also page table entries) need to be 32 or 64-bits depending upon the configuration. This patch uses the %08llx conversion specifier for physical addresses and page table entries, ensuring that they are cast to (long long) so that common code can be used regardless of the datatype widths. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/setup.c2
-rw-r--r--arch/arm/kernel/traps.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index 336f14e0e5c2..77af580953e6 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -448,7 +448,7 @@ static int __init arm_add_memory(unsigned long start, unsigned long size)
448 448
449 if (meminfo.nr_banks >= NR_BANKS) { 449 if (meminfo.nr_banks >= NR_BANKS) {
450 printk(KERN_CRIT "NR_BANKS too low, " 450 printk(KERN_CRIT "NR_BANKS too low, "
451 "ignoring memory at %#lx\n", start); 451 "ignoring memory at 0x%08llx\n", (long long)start);
452 return -EINVAL; 452 return -EINVAL;
453 } 453 }
454 454
diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 354cd4ce400a..10f5b8926ee6 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -710,17 +710,17 @@ EXPORT_SYMBOL(__readwrite_bug);
710 710
711void __pte_error(const char *file, int line, pte_t pte) 711void __pte_error(const char *file, int line, pte_t pte)
712{ 712{
713 printk("%s:%d: bad pte %08lx.\n", file, line, pte_val(pte)); 713 printk("%s:%d: bad pte %08llx.\n", file, line, (long long)pte_val(pte));
714} 714}
715 715
716void __pmd_error(const char *file, int line, pmd_t pmd) 716void __pmd_error(const char *file, int line, pmd_t pmd)
717{ 717{
718 printk("%s:%d: bad pmd %08lx.\n", file, line, pmd_val(pmd)); 718 printk("%s:%d: bad pmd %08llx.\n", file, line, (long long)pmd_val(pmd));
719} 719}
720 720
721void __pgd_error(const char *file, int line, pgd_t pgd) 721void __pgd_error(const char *file, int line, pgd_t pgd)
722{ 722{
723 printk("%s:%d: bad pgd %08lx.\n", file, line, pgd_val(pgd)); 723 printk("%s:%d: bad pgd %08llx.\n", file, line, (long long)pgd_val(pgd));
724} 724}
725 725
726asmlinkage void __div0(void) 726asmlinkage void __div0(void)