1
0
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:
Lucio De Re 2011-08-01 11:12:50 +10:00 committed by Alex Brainman
parent 1d0c141d7d
commit 05f734c8b4

View File

@ -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();
}
}