From a01e54d2015ea692e96f8909b3b1a75e0443445e Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 26 Jan 2013 12:40:48 +0100 Subject: treewide: fix format specifiers Signed-off-by: Sascha Hauer --- common/resource.c | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'common/resource.c') diff --git a/common/resource.c b/common/resource.c index ea6abe88e3..5795e79c6b 100644 --- a/common/resource.c +++ b/common/resource.c @@ -43,15 +43,21 @@ struct resource *request_region(struct resource *parent, struct resource *r, *new; if (end < start) { - debug("%s: request region 0x%08x:0x%08x: end < start\n", - __func__, start, end); + debug("%s: request region 0x%08llx:0x%08llx: end < start\n", + __func__, + (unsigned long long)start, + (unsigned long long)end); return NULL; } /* outside parent resource? */ if (start < parent->start || end > parent->end) { - debug("%s: 0x%08x:0x%08x outside parent resource 0x%08x:0x%08x\n", - __func__, start, end, parent->start, parent->end); + debug("%s: 0x%08llx:0x%08llx outside parent resource 0x%08llx:0x%08llx\n", + __func__, + (unsigned long long)start, + (unsigned long long)end, + (unsigned long long)parent->start, + (unsigned long long)parent->end); return NULL; } @@ -64,13 +70,19 @@ struct resource *request_region(struct resource *parent, goto ok; if (start > r->end) continue; - debug("%s: 0x%08x:0x%08x conflicts with 0x%08x:0x%08x\n", - __func__, start, end, r->start, r->end); + debug("%s: 0x%08llx:0x%08llx conflicts with 0x%08llx:0x%08llx\n", + __func__, + (unsigned long long)start, + (unsigned long long)end, + (unsigned long long)r->start, + (unsigned long long)r->end); return NULL; } ok: - debug("%s ok: 0x%08x:0x%08x\n", __func__, start, end); + debug("%s ok: 0x%08llx:0x%08llx\n", __func__, + (unsigned long long)start, + (unsigned long long)end); new = xzalloc(sizeof(*new)); init_resource(new, name); -- cgit v1.2.3