From 14f6458bf0ce326cd147c6f17140713a1e098964 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 20 Nov 2008 23:16:31 -0800 Subject: don't print (incorrect anyway) line numbers in panic. R=rsc DELTA=4 (0 added, 2 deleted, 2 changed) OCL=19757 CL=19763 --- src/runtime/runtime.c | 4 +--- test/golden.out | 2 +- 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 -- cgit v1.2.3