vsprintf: add %pRt, %pRf to print struct resource details
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 6 Oct 2009 21:33:39 +0000 (15:33 -0600)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 Nov 2009 16:47:17 +0000 (08:47 -0800)
commitfd95541e23e2c9acb1e38cd41fc0c7cc37fceb53
treeb23aae11e5649a47a08b2ae20603e377ca16f3be
parentc91d3376e5f4277173a22f0ef9989125c318bacb
vsprintf: add %pRt, %pRf to print struct resource details

This adds support for printing struct resource type and flag information.
For example, "%pRt" looks like "[mem 0x80080000000-0x8008001ffff 64bit pref]",
and "%pRf" looks like "[mem 0xff5e2000-0xff5e2007 pref flags 0x1]".

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