From: Russ Cox Date: Tue, 27 Jan 2015 19:53:14 +0000 (-0500) Subject: liblink: do not print pointers in debug output X-Git-Tag: go1.5beta1~2251 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4aa63d49acfe93e26891fcf91a24358e60f8bf0d;p=gostls13.git liblink: do not print pointers in debug output Pointers change from run to run, making it hard to use the debug output to identify the reason for a changed object file. Change-Id: I0c954da0943092c48686afc99ecf75eba516de6a Reviewed-on: https://go-review.googlesource.com/3352 Reviewed-by: Aram Hăvărneanu Reviewed-by: Rob Pike --- diff --git a/src/liblink/objfile.c b/src/liblink/objfile.c index aa701f459e..f29ebbc517 100644 --- a/src/liblink/objfile.c +++ b/src/liblink/objfile.c @@ -143,7 +143,7 @@ writeobj(Link *ctxt, Biobuf *b) for(pl = ctxt->plist; pl != nil; pl = pl->link) { for(p = pl->firstpc; p != nil; p = plink) { if(ctxt->debugasm && ctxt->debugvlog) - print("obj: %p %P\n", p, p); + print("obj: %P\n", p); plink = p->link; p->link = nil;