From ccd14fb9e14267640f4f6235eef750cd270e23fd Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Fri, 10 Aug 2018 10:37:11 -0400 Subject: [PATCH] Fine tune fmt usage - Replace fmt.Printf("%s\n", x) with fmt.Println(x) - Replace fmt.Printf(".. %s ..", hex.EncodeToString(x)) with fmt.Printf(".. %x ..", x) --- devices/lepton/lepton_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devices/lepton/lepton_test.go b/devices/lepton/lepton_test.go index 4c4b50c..01f51d4 100644 --- a/devices/lepton/lepton_test.go +++ b/devices/lepton/lepton_test.go @@ -187,7 +187,7 @@ func TestNextFrame(t *testing.T) { offset++ } t.Fatalf("different pixels at offset %d", offset) - //t.Fatalf("different pixels at offset %d:\n%s\n%s", offset, hex.EncodeToString(ref.Pix[offset:]), hex.EncodeToString(f.Pix[offset:])) + //t.Fatalf("different pixels at offset %d:\n%x\n%x", offset, ref.Pix[offset:], f.Pix[offset:]) } if err := i.Close(); err != nil { t.Fatal(err)