summaryrefslogtreecommitdiff
path: root/src/devices/device.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.c
parentccee6256b48ad619d16c4479a25937fa95b93efc (diff)
downloadcoreboot-51615091320a18e39ef2c509ec24e7f80ba71f01.tar.xz
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.c')
-rw-r--r--src/devices/device.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/device.c b/src/devices/device.c
index a2619bf000..0d2bf8f1ae 100644
--- a/src/devices/device.c
+++ b/src/devices/device.c
@@ -322,7 +322,7 @@ static void compute_resources(struct bus *bus, struct resource *bridge,
(resource->flags & IORESOURCE_ASSIGNED)) {
printk(BIOS_ERR,
"Resource limit looks wrong! (no APIC?)\n");
- printk(BIOS_ERR, "%s %02lx limit %08Lx\n",
+ printk(BIOS_ERR, "%s %02lx limit %08llx\n",
dev_path(dev), resource->index, resource->limit);
}
@@ -627,7 +627,7 @@ static void avoid_fixed_resources(struct device *dev)
for (res = dev->resource_list; res; res = res->next) {
if ((res->flags & IORESOURCE_FIXED))
continue;
- printk(BIOS_SPEW, "%s:@%s %02lx limit %08Lx\n", __func__,
+ printk(BIOS_SPEW, "%s:@%s %02lx limit %08llx\n", __func__,
dev_path(dev), res->index, res->limit);
if ((res->flags & MEM_MASK) == PREF_TYPE &&
(res->limit < limits.pref.limit))
@@ -660,9 +660,9 @@ static void avoid_fixed_resources(struct device *dev)
else
continue;
- printk(BIOS_SPEW, "%s2: %s@%02lx limit %08Lx\n", __func__,
+ printk(BIOS_SPEW, "%s2: %s@%02lx limit %08llx\n", __func__,
dev_path(dev), res->index, res->limit);
- printk(BIOS_SPEW, "\tlim->base %08Lx lim->limit %08Lx\n",
+ printk(BIOS_SPEW, "\tlim->base %08llx lim->limit %08llx\n",
lim->base, lim->limit);
/* Is the resource outside the limits? */