summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkg/log/log_test.go2
-rw-r--r--src/pkg/runtime/runtime.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/log/log_test.go b/src/pkg/log/log_test.go
index fd0b36c6e..eb4b69a2e 100644
--- a/src/pkg/log/log_test.go
+++ b/src/pkg/log/log_test.go
@@ -17,7 +17,7 @@ const (
Rdate = `[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]`
Rtime = `[0-9][0-9]:[0-9][0-9]:[0-9][0-9]`
Rmicroseconds = `\.[0-9][0-9][0-9][0-9][0-9][0-9]`
- Rline = `[0-9]+:`
+ Rline = `(58|60):` // must update if the calls to l.Logf / l.Log below move
Rlongfile = `.*/[A-Za-z0-9_\-]+\.go:` + Rline
Rshortfile = `[A-Za-z0-9_\-]+\.go:` + Rline
)
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c
index 9a027d430..c2eee60ca 100644
--- a/src/pkg/runtime/runtime.c
+++ b/src/pkg/runtime/runtime.c
@@ -479,7 +479,7 @@ void
{
Func *f;
- if(callers(skip, &retpc, 1) == 0 || (f = findfunc(retpc-1)) == nil) {
+ if(callers(1+skip, &retpc, 1) == 0 || (f = findfunc(retpc-1)) == nil) {
retfile = emptystring;
retline = 0;
retbool = false;