Skip to content

Commit

Permalink
cmd/5g: fix print format in peephole debugging
Browse files Browse the repository at this point in the history
Fixes golang#7294.

LGTM=minux.ma, dave, bradfitz
R=golang-codereviews, minux.ma, dave, bradfitz
CC=golang-codereviews
https://golang.org/cl/61370043
  • Loading branch information
ality committed Feb 13, 2014
1 parent 5bf35df commit 27cb59f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/5g/peep.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ shortprop(Flow *r)
break;
}
if(debug['P'])
print(" => %nil\n", p->as);
print(" => %A\n", p->as);
return 1;
}

Expand Down Expand Up @@ -936,7 +936,7 @@ copyu(Prog *p, Adr *v, Adr *s)
switch(p->as) {

default:
print("copyu: can't find %nil\n", p->as);
print("copyu: can't find %A\n", p->as);
return 2;

case AMOVM:
Expand Down

0 comments on commit 27cb59f

Please sign in to comment.