summaryrefslogtreecommitdiff
path: root/sd_daemon/log.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-12-22 17:43:28 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-12-22 17:43:28 -0500
commit7dfa7331fa66c4d1f3342441190c3dd3cdc18b99 (patch)
treea7c783abbb0b7e2e79467dc76f880bc85b6d3f2c /sd_daemon/log.go
parenta04b84778871d77e539a675acbff05f7220e2f5e (diff)
sd_daemon/log.go: Shave off a byte, fix a comment.
Diffstat (limited to 'sd_daemon/log.go')
-rw-r--r--sd_daemon/log.go2
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 {