summaryrefslogtreecommitdiff
path: root/src/devices/device_util.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2012-03-11 19:31:03 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2012-03-24 15:32:24 +0100
commit51615091320a18e39ef2c509ec24e7f80ba71f01 (patch)
treed0d3a4f3c0265630a32d58955e23a35c90740b5e /src/devices/device_util.c
parentccee6256b48ad619d16c4479a25937fa95b93efc (diff)
printf: Remove some L modifier uses
We use the L modifier in a non-standard way (for long long instead of long double, which we have no business with). clang complains, to reduce its use, to make emulation/qemu-x86 happier. Long term, we should consider eliminating public uses of 'L' (but internal use in vtxprintf to denote long long is fine) Change-Id: If9a17d9ae9925cdc8736445e7d5eedc59c7028c6 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/781 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/devices/device_util.c')
-rw-r--r--src/devices/device_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/device_util.c b/src/devices/device_util.c
index 5b182e1e89..526490a8c1 100644
--- a/src/devices/device_util.c
+++ b/src/devices/device_util.c
@@ -571,7 +571,7 @@ void report_resource_stored(device_t dev, struct resource *resource,
sprintf(buf, "bus %02x ", dev->link_list->secondary);
#endif
}
- printk(BIOS_DEBUG, "%s %02lx <- [0x%010Lx - 0x%010Lx] size 0x%08Lx "
+ printk(BIOS_DEBUG, "%s %02lx <- [0x%010llx - 0x%010llx] size 0x%08llx "
"gran 0x%02x %s%s%s\n", dev_path(dev), resource->index,
base, end, resource->size, resource->gran, buf,
resource_type(resource), comment);
@@ -786,7 +786,7 @@ void show_one_resource(int debug_level, struct device *dev,
*/
do_printk(debug_level, "%s %02lx <- [0x%010llx - 0x%010llx] "
- "size 0x%08Lx gran 0x%02x %s%s%s\n", dev_path(dev),
+ "size 0x%08llx gran 0x%02x %s%s%s\n", dev_path(dev),
resource->index, base, end, resource->size, resource->gran,
buf, resource_type(resource), comment);
}