From 7dfa7331fa66c4d1f3342441190c3dd3cdc18b99 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 22 Dec 2016 17:43:28 -0500 Subject: sd_daemon/log.go: Shave off a byte, fix a comment. --- sd_daemon/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd_daemon') 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 { -- cgit v1.2.3-54-g00ecf