]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vsprintf: add %pad extension for dma_addr_t use
authorJoe Perches <joe@perches.com>
Thu, 23 Jan 2014 23:54:17 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:56 +0000 (16:36 -0800)
commitaaf07621b8bbfdc0d87e9e5dbf1af3b24304998a
tree0b6b96f278a12b3dc5bcc46217ea8f0d54098d14
parentc28aa1f0a847c36daa4280b611e2b54bad75c576
vsprintf: add %pad extension for dma_addr_t use

dma_addr_t's can be either u32 or u64 depending on a CONFIG option.

There are a few hundred dma_addr_t's printed via either cast to unsigned
long long, unsigned long or no cast at all.

Add %pad to be able to emit them without the cast.

Update Documentation/printk-formats.txt too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: "Shevchenko, Andriy" <andriy.shevchenko@intel.com>
Cc: Rob Landley <rob@landley.net>
Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/printk-formats.txt
lib/vsprintf.c