Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24bcc2f4 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King
Browse files

[ARM] 3092/1: remove excessive print format padding



Patch from Nicolas Pitre

Using a llx format to print addresses that might possibly be (only) 36
bits wide make sense.  However making it a zero padded 16 char wide
field is a bit excessive and useless.

Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 089311e1
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -469,14 +469,14 @@ void __init create_mapping(struct map_desc *md)


	if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) {
	if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) {
		printk(KERN_WARNING "BUG: not creating mapping for "
		printk(KERN_WARNING "BUG: not creating mapping for "
		       "0x%016llx at 0x%08lx in user region\n",
		       "0x%08llx at 0x%08lx in user region\n",
		       __pfn_to_phys((u64)md->pfn), md->virtual);
		       __pfn_to_phys((u64)md->pfn), md->virtual);
		return;
		return;
	}
	}


	if ((md->type == MT_DEVICE || md->type == MT_ROM) &&
	if ((md->type == MT_DEVICE || md->type == MT_ROM) &&
	    md->virtual >= PAGE_OFFSET && md->virtual < VMALLOC_END) {
	    md->virtual >= PAGE_OFFSET && md->virtual < VMALLOC_END) {
		printk(KERN_WARNING "BUG: mapping for 0x%016llx at 0x%08lx "
		printk(KERN_WARNING "BUG: mapping for 0x%08llx at 0x%08lx "
		       "overlaps vmalloc space\n",
		       "overlaps vmalloc space\n",
		       __pfn_to_phys((u64)md->pfn), md->virtual);
		       __pfn_to_phys((u64)md->pfn), md->virtual);
	}
	}
@@ -492,14 +492,14 @@ void __init create_mapping(struct map_desc *md)
	if(md->pfn >= 0x100000) {
	if(md->pfn >= 0x100000) {
		if(domain) {
		if(domain) {
			printk(KERN_ERR "MM: invalid domain in supersection "
			printk(KERN_ERR "MM: invalid domain in supersection "
				"mapping for 0x%016llx at 0x%08lx\n",
				"mapping for 0x%08llx at 0x%08lx\n",
				__pfn_to_phys((u64)md->pfn), md->virtual);
				__pfn_to_phys((u64)md->pfn), md->virtual);
			return;
			return;
		}
		}
		if((md->virtual | md->length | __pfn_to_phys(md->pfn))
		if((md->virtual | md->length | __pfn_to_phys(md->pfn))
			& ~SUPERSECTION_MASK) {
			& ~SUPERSECTION_MASK) {
			printk(KERN_ERR "MM: cannot create mapping for "
			printk(KERN_ERR "MM: cannot create mapping for "
				"0x%016llx at 0x%08lx invalid alignment\n",
				"0x%08llx at 0x%08lx invalid alignment\n",
				__pfn_to_phys((u64)md->pfn), md->virtual);
				__pfn_to_phys((u64)md->pfn), md->virtual);
			return;
			return;
		}
		}