mirror of
https://github.com/golang/go
synced 2024-11-12 09:20:22 -07:00
cmd/ld/pe.c: Corrected mismatched print formats and variables.
R=golang-dev, alex.brainman CC=golang-dev, rsc https://golang.org/cl/4839041
This commit is contained in:
parent
1d0c141d7d
commit
05f734c8b4
@ -101,7 +101,7 @@ static void
|
||||
chksectoff(IMAGE_SECTION_HEADER *h, vlong off)
|
||||
{
|
||||
if(off != h->PointerToRawData) {
|
||||
diag("%s.PointerToRawData = %#llux, want %#llux", h->Name, (vlong)h->PointerToRawData, off);
|
||||
diag("%s.PointerToRawData = %#llux, want %#llux", (char *)h->Name, (vlong)h->PointerToRawData, off);
|
||||
errorexit();
|
||||
}
|
||||
}
|
||||
@ -110,11 +110,11 @@ static void
|
||||
chksectseg(IMAGE_SECTION_HEADER *h, Segment *s)
|
||||
{
|
||||
if(s->vaddr-PEBASE != h->VirtualAddress) {
|
||||
diag("%s.VirtualAddress = %#llux, want %#llux", h->Name, (vlong)h->VirtualAddress, (vlong)(s->vaddr-PEBASE));
|
||||
diag("%s.VirtualAddress = %#llux, want %#llux", (char *)h->Name, (vlong)h->VirtualAddress, (vlong)(s->vaddr-PEBASE));
|
||||
errorexit();
|
||||
}
|
||||
if(s->fileoff != h->PointerToRawData) {
|
||||
diag("%s.PointerToRawData = %#llux, want %#llux", h->Name, (vlong)h->PointerToRawData, (vlong)(s->fileoff));
|
||||
diag("%s.PointerToRawData = %#llux, want %#llux", (char *)h->Name, (vlong)h->PointerToRawData, (vlong)(s->fileoff));
|
||||
errorexit();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user