Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Fixes for go 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
nickw444 committed Sep 26, 2018
1 parent 65e7573 commit ce79bf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions protocol/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ func (p *protocol) process(pkt *packet.Packet) {
// Known device. Handle the incoming packet.
err := dev.Handle(pkt)
if err != nil {
common.Log.Errorf("Unable to process packet %s for device %d. Error %s", pkt, dev.ID(), err)
common.Log.Errorf("Unable to process packet %v for device %d. Error %s", pkt, dev.ID(), err)
}
} else {
common.Log.Errorf("Unable to process packet %s. Device unknown.", pkt)
common.Log.Errorf("Unable to process packet %v. Device unknown.", pkt)
}
}

Expand Down
2 changes: 1 addition & 1 deletion simulator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
}

inbound := transport.NewInbound(s)
log.Infof("Creating device with id=%d token=%s revealToken=%b",
log.Infof("Creating device with id=%d token=%s revealToken=%t",
*deviceId, hex.EncodeToString(*deviceToken), *revealToken)
baseDev, err := device.NewBaseDevice(*deviceId, *deviceToken, *revealToken)
if err != nil {
Expand Down

0 comments on commit ce79bf6

Please sign in to comment.