mirror of https://github.com/golang/go.git
runtime: remove redundant 0x prefix in error print
%x already adds the prefix unconditionally R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/51550043
This commit is contained in:
parent
6f97ef28af
commit
a2edc469a0
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue