]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix vet warning about println
authorMatthew Dempsky <mdempsky@google.com>
Thu, 12 Nov 2015 04:49:37 +0000 (20:49 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 12 Nov 2015 05:19:58 +0000 (05:19 +0000)
lfstack.go:19: println call ends with newline

Change-Id: I2a903eef80a5300e9014999c2f0bc5d40ed5c735
Reviewed-on: https://go-review.googlesource.com/16836
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/runtime/lfstack.go

index de3999a5fb2352ab2be8da7994732b2b7a017811..ea640eb12f2415671e73790814097b5ca92c4a5b 100644 (file)
@@ -16,7 +16,7 @@ func lfstackpush(head *uint64, node *lfnode) {
        node.pushcnt++
        new := lfstackPack(node, node.pushcnt)
        if node1, _ := lfstackUnpack(new); node1 != node {
-               println("runtime: lfstackpush invalid packing: node=", node, " cnt=", hex(node.pushcnt), " packed=", hex(new), " -> node=", node1, "\n")
+               print("runtime: lfstackpush invalid packing: node=", node, " cnt=", hex(node.pushcnt), " packed=", hex(new), " -> node=", node1, "\n")
                throw("lfstackpush")
        }
        for {