Commit 05f734c8 authored by Lucio De Re's avatar Lucio De Re Committed by Alex Brainman

cmd/ld/pe.c: Corrected mismatched print formats and variables.

R=golang-dev, alex.brainman
CC=golang-dev, rsc
https://golang.org/cl/4839041
parent 1d0c141d
...@@ -101,7 +101,7 @@ static void ...@@ -101,7 +101,7 @@ static void
chksectoff(IMAGE_SECTION_HEADER *h, vlong off) chksectoff(IMAGE_SECTION_HEADER *h, vlong off)
{ {
if(off != h->PointerToRawData) { 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(); errorexit();
} }
} }
...@@ -110,11 +110,11 @@ static void ...@@ -110,11 +110,11 @@ static void
chksectseg(IMAGE_SECTION_HEADER *h, Segment *s) chksectseg(IMAGE_SECTION_HEADER *h, Segment *s)
{ {
if(s->vaddr-PEBASE != h->VirtualAddress) { 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(); errorexit();
} }
if(s->fileoff != h->PointerToRawData) { 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(); errorexit();
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment