]> Cypherpunks repositories - gostls13.git/commitdiff
liblink: do not print pointers in debug output
authorRuss Cox <rsc@golang.org>
Tue, 27 Jan 2015 19:53:14 +0000 (14:53 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 28 Jan 2015 01:51:33 +0000 (01:51 +0000)
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 <aram@mgk.ro>
Reviewed-by: Rob Pike <r@golang.org>
src/liblink/objfile.c

index aa701f459ed014c576ff2a6efadc4b703635f438..f29ebbc5177845f0291eda4c702d4abc42fe0684 100644 (file)
@@ -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;