diff --git a/pkg/dmesg/dmesg_linux.go b/pkg/dmesg/dmesg_linux.go index 524c35a883..d91179b5ef 100644 --- a/pkg/dmesg/dmesg_linux.go +++ b/pkg/dmesg/dmesg_linux.go @@ -6,9 +6,8 @@ import ( // Dmesg returns last messages from the kernel log, up to size bytes func Dmesg(size int) []byte { - t := 3 // SYSLOG_ACTION_READ_ALL b := make([]byte, size) - amt, err := unix.Klogctl(t, b) + amt, err := unix.Klogctl(unix.SYSLOG_ACTION_READ_ALL, b) if err != nil { return []byte{} }