summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-11-20 23:16:31 -0800
committerRob Pike <r@golang.org>2008-11-20 23:16:31 -0800
commit14f6458bf0ce326cd147c6f17140713a1e098964 (patch)
tree688150227cf6e0f84f7a12d19d10b41bec7b9b54
parent1941a40b4f27e4df425553c2d65e0c7946cda85f (diff)
downloadgolang-14f6458bf0ce326cd147c6f17140713a1e098964.tar.gz
don't print (incorrect anyway) line numbers in panic.
R=rsc DELTA=4 (0 added, 2 deleted, 2 changed) OCL=19757 CL=19763
-rw-r--r--src/runtime/runtime.c4
-rw-r--r--test/golden.out2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c
index 0a72b146b..13f9cacef 100644
--- a/src/runtime/runtime.c
+++ b/src/runtime/runtime.c
@@ -23,9 +23,7 @@ sys·panicl(int32 lno)
{
uint8 *sp;
- prints("\npanic on line ");
- sys·printint(lno);
- prints(" ");
+ prints("\npanic ");
sys·printpc(&lno);
prints("\n");
sp = (uint8*)&lno;
diff --git a/test/golden.out b/test/golden.out
index 2a870d6f6..957aa86e7 100644
--- a/test/golden.out
+++ b/test/golden.out
@@ -146,7 +146,7 @@ BUG: should compile
=========== bugs/bug119.go
3 74256
-panic on line 85 PC=xxx
+panic PC=xxx
BUG: should not fail
=========== bugs/bug120.go