]> Cypherpunks repositories - gostls13.git/commitdiff
don't print (incorrect anyway) line numbers in panic.
authorRob Pike <r@golang.org>
Fri, 21 Nov 2008 07:16:31 +0000 (23:16 -0800)
committerRob Pike <r@golang.org>
Fri, 21 Nov 2008 07:16:31 +0000 (23:16 -0800)
R=rsc
DELTA=4  (0 added, 2 deleted, 2 changed)
OCL=19757
CL=19763

src/runtime/runtime.c
test/golden.out

index 0a72b146baf4adb7bdfc324b91825f40e4c36939..13f9cacef4d68ec8777bfaba5edea376f8672280 100644 (file)
@@ -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;
index 2a870d6f679c9d9ab0cb558baa86302dbe7636b8..957aa86e7f7ebd4a65f656cf3ff8f8156701d82e 100644 (file)
@@ -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