diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-25 13:06:03 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-25 14:45:43 +0200 |
commit | 2ca512e5923bb2d66a13211af9401c53735052b2 (patch) | |
tree | 77a53d8e7ddfc7a32447bd925e70f6216f8aef17 /drivers | |
parent | 53e9fae78c2fb1824c4d9cdbf6bd418e3325d2a9 (diff) | |
download | barebox-2ca512e5923bb2d66a13211af9401c53735052b2.tar.gz barebox-2ca512e5923bb2d66a13211af9401c53735052b2.tar.xz |
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/driver.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |