]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vsprintf: add %pad extension for dma_addr_t use
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:10:12 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:12 +0000 (14:10 +1100)
commit5ebdf62f1fda1a51138380de7704820734038908
tree418b69eeac7073ba55508c63bda8e97f18d01574
parent549fd450c2805b3cd4b788918639ef88d75d0aea
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>
Documentation/printk-formats.txt
lib/vsprintf.c