From: Rob Pike Date: Fri, 21 Nov 2008 07:16:31 +0000 (-0800) Subject: don't print (incorrect anyway) line numbers in panic. X-Git-Tag: weekly.2009-11-06~2639 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=60db3d6d3ff1f306d889a24f22615469740995a9;p=gostls13.git don't print (incorrect anyway) line numbers in panic. R=rsc DELTA=4 (0 added, 2 deleted, 2 changed) OCL=19757 CL=19763 --- diff --git a/src/runtime/runtime.c b/src/runtime/runtime.c index 0a72b146ba..13f9cacef4 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 2a870d6f67..957aa86e7f 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