From 2ca512e5923bb2d66a13211af9401c53735052b2 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 25 Jun 2012 13:06:03 +0200 Subject: print out resource_size_t correctly resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer --- drivers/base/driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 547d6843a6..3be4b99030 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -388,7 +388,8 @@ static int do_devinfo(int argc, char *argv[]) printf("num : %d\n", i); if (res->name) printf("name : %s\n", res->name); - printf("start : 0x%08x\nsize : 0x%08x\n", + printf("start : " PRINTF_CONVERSION_RESOURCE "\nsize : " + PRINTF_CONVERSION_RESOURCE "\n", res->start, res->size); } -- cgit v1.2.3