aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ringlogger/global.go
diff options
context:
space:
mode:
Diffstat (limited to 'ringlogger/global.go')
-rw-r--r--ringlogger/global.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/ringlogger/global.go b/ringlogger/global.go
index 0685cbd7..6b614190 100644
--- a/ringlogger/global.go
+++ b/ringlogger/global.go
@@ -30,8 +30,10 @@ func InitGlobalLogger(file, tag string) error {
//go:linkname overrideWrite runtime.overrideWrite
var overrideWrite func(fd uintptr, p unsafe.Pointer, n int32) int32
-var globalBuffer [maxLogLineLength - 1 - maxTagLength - 3]byte
-var globalBufferLocation int
+var (
+ globalBuffer [maxLogLineLength - 1 - maxTagLength - 3]byte
+ globalBufferLocation int
+)
//go:nosplit
func globalWrite(fd uintptr, p unsafe.Pointer, n int32) int32 {