Skip to content

Commit 85cb359

Browse files
committed
device: add missing colon to error line
People are actually hitting this condition, so make it uniform. Also, change a printf into a println, to match the other conventions. Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 9c4bced commit 85cb359

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

device/device.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func deviceUpdateState(device *Device) {
158158
switch newIsUp {
159159
case true:
160160
if err := device.BindUpdate(); err != nil {
161-
device.log.Error.Printf("Unable to update bind: %v\n", err)
161+
device.log.Error.Println("Unable to update bind:", err)
162162
device.isUp.Set(false)
163163
break
164164
}

device/send.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ func (peer *Peer) SendHandshakeInitiation(isRetry bool) error {
174174

175175
err = peer.SendBuffer(packet)
176176
if err != nil {
177-
peer.device.log.Error.Println(peer, "- Failed to send handshake initiation", err)
177+
peer.device.log.Error.Println(peer, "- Failed to send handshake initiation:", err)
178178
}
179179
peer.timersHandshakeInitiated()
180180

@@ -212,7 +212,7 @@ func (peer *Peer) SendHandshakeResponse() error {
212212

213213
err = peer.SendBuffer(packet)
214214
if err != nil {
215-
peer.device.log.Error.Println(peer, "- Failed to send handshake response", err)
215+
peer.device.log.Error.Println(peer, "- Failed to send handshake response:", err)
216216
}
217217
return err
218218
}

0 commit comments

Comments
 (0)