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 /commands | |
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 'commands')
-rw-r--r-- | commands/iomem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/iomem.c b/commands/iomem.c index 96b03bab80..70355fd1e9 100644 --- a/commands/iomem.c +++ b/commands/iomem.c @@ -30,7 +30,8 @@ static void __print_resources(struct resource *res, int indent) for (i = 0; i < indent; i++) printf(" "); - printf("0x%08x - 0x%08x (size 0x%08x) %s\n", res->start, + printf(PRINTF_CONVERSION_RESOURCE " - " PRINTF_CONVERSION_RESOURCE + " (size " PRINTF_CONVERSION_RESOURCE ") %s\n", res->start, res->start + res->size - 1, res->size, res->name); |