• Russ Cox's avatar
    various: avoid %ld etc · d9c989fa
    Russ Cox authored
    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
    d9c989fa
nm.c 7.4 KB