From d9c989fa2512aa5ea7f571c212d3a7cf04e95549 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 13 Oct 2010 16:20:22 -0400 Subject: 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 --- src/cmd/nm/nm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/nm/nm.c') 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) -- cgit v1.3