]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove redundant 0x prefix in error print
authorRuss Cox <rsc@golang.org>
Mon, 13 Jan 2014 16:39:04 +0000 (11:39 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 13 Jan 2014 16:39:04 +0000 (11:39 -0500)
%x already adds the prefix unconditionally

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/51550043

src/pkg/runtime/symtab.c

index dd0015aeeced76d0f068c1b0b51aa830b831a556..1ceb76c07cac41de3745eb86ff028db5b94a9959 100644 (file)
@@ -38,7 +38,7 @@ runtime·symtabinit(void)
        // two zero bytes, a byte giving the PC quantum,
        // and a byte giving the pointer width in bytes.
        if(*(uint32*)pclntab != 0xfffffffb || pclntab[4] != 0 || pclntab[5] != 0 || pclntab[6] != PCQuantum || pclntab[7] != sizeof(void*)) {
-               runtime·printf("runtime: function symbol table header: 0x%x 0x%x\n", *(uint32*)pclntab, *(uint32*)(pclntab+4));
+               runtime·printf("runtime: function symbol table header: %x %x\n", *(uint32*)pclntab, *(uint32*)(pclntab+4));
                runtime·throw("invalid function symbol table\n");
        }