summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-08-20 10:23:59 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-08-20 10:23:59 +0000
commit3505633eeff6ab72c6408926b3c4076ac7efeff5 (patch)
treecd3d51e65534603142eb681417213e2e1b0cfc2b /mdk-stage1
parent06428bae51dc2c95f3c162684afd50c72a42e751 (diff)
downloaddrakx-3505633eeff6ab72c6408926b3c4076ac7efeff5.tar
drakx-3505633eeff6ab72c6408926b3c4076ac7efeff5.tar.gz
drakx-3505633eeff6ab72c6408926b3c4076ac7efeff5.tar.bz2
drakx-3505633eeff6ab72c6408926b3c4076ac7efeff5.tar.xz
drakx-3505633eeff6ab72c6408926b3c4076ac7efeff5.zip
Use "%p" specifier as "Base" is likely to be an address.
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/pcmcia_/cardmgr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/pcmcia_/cardmgr.c b/mdk-stage1/pcmcia_/cardmgr.c
index 1db18b55b..ea3ff127e 100644
--- a/mdk-stage1/pcmcia_/cardmgr.c
+++ b/mdk-stage1/pcmcia_/cardmgr.c
@@ -1259,9 +1259,9 @@ static void adjust_resources(void)
if (ret != 0) {
switch (al->adj.Resource) {
case RES_MEMORY_RANGE:
- sprintf(tmp, "memory %#lx-%#lx",
- al->adj.resource.memory.Base,
- al->adj.resource.memory.Base +
+ sprintf(tmp, "memory %p-%p",
+ (char *)al->adj.resource.memory.Base,
+ (char *)al->adj.resource.memory.Base +
al->adj.resource.memory.Size - 1);
break;
case RES_IO_RANGE: