]> bbs.cooldavid.org Git - net-next-2.6.git/commit
vsprintf: add %pR support for IRQ and DMA resources
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 6 Oct 2009 21:33:34 +0000 (15:33 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Nov 2009 16:47:16 +0000 (08:47 -0800)
commitc91d3376e5f4277173a22f0ef9989125c318bacb
tree1f5534a2792f0de2cd8937d7efd9dc03d97ac2e4
parent2840537228fba95e05cab1a6b5719c61982db279
vsprintf: add %pR support for IRQ and DMA resources

Print addresses (IO port numbers and memory addresses) in hex, but print
others (IRQs and DMA channels) in decimal.  Only print the end if it's
different from the start.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
lib/vsprintf.c