From 4aa63d49acfe93e26891fcf91a24358e60f8bf0d Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 27 Jan 2015 14:53:14 -0500 Subject: [PATCH] liblink: do not print pointers in debug output MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/liblink/objfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.0