diff options
author | Joe Perches <joe@perches.com> | 2010-11-09 17:14:01 -0800 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-11-10 14:31:28 +0100 |
commit | 106665d937df6eff33c71997a52f7bc3aefa6c12 (patch) | |
tree | 321c18545a08982d4e2869fb4ad2cbe096ad1469 /drivers/pcmcia/soc_common.c | |
parent | 86f94e3a1583765476ec06131c755af8318e6470 (diff) | |
download | linux-106665d937df6eff33c71997a52f7bc3aefa6c12.tar.gz linux-106665d937df6eff33c71997a52f7bc3aefa6c12.tar.xz |
drivers/pcmcia/soc_common.c: Use printf extension %pV
Using %pV reduces the number of printk calls and
eliminates any possible message interleaving from
other printk calls.
Signed-off-by: Joe Perches <joe@perches.com>
CC: Russell King <linux@arm.linux.org.uk>
CC: Eric Miao <eric.y.miao@gmail.com>
CC: linux-arm-kernel@lists.infradead.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/soc_common.c')
-rw-r--r-- | drivers/pcmcia/soc_common.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index 689e3c02edb8..3753fd0722e7 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c @@ -57,11 +57,16 @@ module_param(pc_debug, int, 0644); void soc_pcmcia_debug(struct soc_pcmcia_socket *skt, const char *func, int lvl, const char *fmt, ...) { + struct va_format vaf; va_list args; if (pc_debug > lvl) { - printk(KERN_DEBUG "skt%u: %s: ", skt->nr, func); va_start(args, fmt); - vprintk(fmt, args); + + vaf.fmt = fmt; + vaf.va = &args; + + printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf); + va_end(args); } } |