diff options
-rw-r--r-- | sd_daemon/log.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd_daemon/log.go b/sd_daemon/log.go index 9b23f31..138a07a 100644 --- a/sd_daemon/log.go +++ b/sd_daemon/log.go @@ -63,7 +63,7 @@ var Log = NewLogger(os.Stderr) // // *buf = append(*buf, fmt.Sprintf("<%d>", n)...) func appendPrefix(buf []byte, n syslog.Priority) []byte { - var b [22]byte // 22 = ceil(log_10(2^64))+len("<>") + var b [21]byte // 21 = (floor(log_10(2^63-1))+1) + len("<>") b[len(b)-1] = '>' i := len(b) - 2 for n >= 10 { |