aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-10-13 16:20:22 -0400
committerRuss Cox <rsc@golang.org>2010-10-13 16:20:22 -0400
commitd9c989fa2512aa5ea7f571c212d3a7cf04e95549 (patch)
tree047ada161783147b5ecb2339ace05019eea91d98 /src/cmd/nm
parent085be1740afeb292c3aeb6c43c002f06884f763a (diff)
downloadgo-d9c989fa2512aa5ea7f571c212d3a7cf04e95549.tar.xz
various: avoid %ld etc
The Plan 9 tools assume that long is 32 bits. We converted all instances of long to int32 when importing the code but missed the print formats. Because int32 is always int on the compilers we use, it is never correct to use %lux, %ld, etc. Convert to %ux, %d, etc. (It matters because on 64-bit gcc, long is 64 bits, so we were printing 32-bit quantities with 64-bit formats.) R=ken2 CC=golang-dev https://golang.org/cl/2491041
Diffstat (limited to 'src/cmd/nm')
-rw-r--r--src/cmd/nm/nm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/nm/nm.c b/src/cmd/nm/nm.c
index 978218bff3..e57492d184 100644
--- a/src/cmd/nm/nm.c
+++ b/src/cmd/nm/nm.c
@@ -132,7 +132,7 @@ doar(Biobuf *bp)
for (offset = Boffset(bp);;offset += size) {
size = nextar(bp, offset, membername);
if (size < 0) {
- error("phase error on ar header %ld", offset);
+ error("phase error on ar header %d", offset);
return;
}
if (size == 0)