From 2f70f83e86619700b661bcdeb796531e2946881f Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Sun, 9 Apr 2017 22:41:24 -0400 Subject: [PATCH] Make conntest output copy-pastable; fix go vet issues --- devices/ssd1306/ssd1306smoketest/ssd1306smoketest.go | 2 +- devices/tm1637/tm1637_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/devices/ssd1306/ssd1306smoketest/ssd1306smoketest.go b/devices/ssd1306/ssd1306smoketest/ssd1306smoketest.go index ccd06a9..c005bb6 100644 --- a/devices/ssd1306/ssd1306smoketest/ssd1306smoketest.go +++ b/devices/ssd1306/ssd1306smoketest/ssd1306smoketest.go @@ -165,7 +165,7 @@ func (s *SmokeTest) run(i2cBus i2c.Bus, spiBus spi.ConnCloser, dc gpio.PinOut, w } s.devices = []*ssd1306.Dev{i2cDev, spiDev} - fmt.Printf("%s: Devices: %s, %s\n", s, s.devices[0], s.devices[1]) + fmt.Printf("%s: Devices: %v, %v\n", s, s.devices[0], s.devices[1]) s.printStr("NewXXX() durations") // Preparations. diff --git a/devices/tm1637/tm1637_test.go b/devices/tm1637/tm1637_test.go index bee033f..f927885 100644 --- a/devices/tm1637/tm1637_test.go +++ b/devices/tm1637/tm1637_test.go @@ -59,7 +59,7 @@ func TestNew(t *testing.T) { func TestDigits(t *testing.T) { expected := []byte{0x3F, 0x06} if b := Digits(0, 1); !bytes.Equal(b, expected) { - t.Fatal("%v != %v", b, expected) + t.Fatalf("%v != %v", b, expected) } }