From 27cb59fdad4696c9a9169af50bff520492d98b35 Mon Sep 17 00:00:00 2001 From: Anthony Martin Date: Wed, 12 Feb 2014 17:03:21 -0800 Subject: [PATCH] cmd/5g: fix print format in peephole debugging Fixes #7294. LGTM=minux.ma, dave, bradfitz R=golang-codereviews, minux.ma, dave, bradfitz CC=golang-codereviews https://golang.org/cl/61370043 --- src/cmd/5g/peep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/5g/peep.c b/src/cmd/5g/peep.c index 1476ea4c55..b7c6918cf2 100644 --- a/src/cmd/5g/peep.c +++ b/src/cmd/5g/peep.c @@ -545,7 +545,7 @@ gotit: break; } if(debug['P']) - print(" => %nil\n", p->as); + print(" => %A\n", p->as); return 1; } @@ -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: