diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-08-20 10:23:59 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-08-20 10:23:59 +0000 |
commit | 3505633eeff6ab72c6408926b3c4076ac7efeff5 (patch) | |
tree | cd3d51e65534603142eb681417213e2e1b0cfc2b /mdk-stage1 | |
parent | 06428bae51dc2c95f3c162684afd50c72a42e751 (diff) | |
download | drakx-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.c | 6 |
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: |