diff options
author | rsc <devnull@localhost> | 2005-02-11 17:01:25 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-11 17:01:25 +0000 |
commit | fbca1e1c5bdccdbdbf034a295293a0d667eab032 (patch) | |
tree | 48d077e6211602b7aa220c31e9883421a52b760f /src/libmach | |
parent | 42400cf81f4fb04897bc1b609fc08720bc542df8 (diff) | |
download | plan9port-fbca1e1c5bdccdbdbf034a295293a0d667eab032.tar.gz plan9port-fbca1e1c5bdccdbdbf034a295293a0d667eab032.tar.bz2 plan9port-fbca1e1c5bdccdbdbf034a295293a0d667eab032.zip |
use explicit %#
Diffstat (limited to 'src/libmach')
-rw-r--r-- | src/libmach/sym.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmach/sym.c b/src/libmach/sym.c index 3b5c5ec4..4730fdc1 100644 --- a/src/libmach/sym.c +++ b/src/libmach/sym.c @@ -393,11 +393,11 @@ symoff(char *a, uint n, ulong addr, uint class) l.type = LADDR; l.addr = addr; if(findsym(l, class, &s) < 0 || addr-s.loc.addr >= 4096){ - snprint(a, n, "%lux", addr); + snprint(a, n, "%#lux", addr); return -1; } if(addr != s.loc.addr) - snprint(a, n, "%s+%ld", s.name, addr-s.loc.addr); + snprint(a, n, "%s+%#lx", s.name, addr-s.loc.addr); else snprint(a, n, "%s", s.name); return 0; |