diff --git a/format.go b/format.go index 7160674..b8f4227 100644 --- a/format.go +++ b/format.go @@ -385,7 +385,7 @@ func formatCallpath(calldepth int, depth int) string { if i < start { v += "." } - if f := runtime.FuncForPC(pc); f != nil { + if f := runtime.FuncForPC(pc - 1); f != nil { v += formatFuncName(fmtVerbShortfunc, f.Name()) } }