From 07e106ffa1943cea5bc95b3a8495b74376ddae7b Mon Sep 17 00:00:00 2001 From: Liz Kammer Date: Thu, 13 Jan 2022 17:00:10 -0500 Subject: [PATCH] Change format string %s -> %#v Make go stop complaining about format string: "Errorf format %s has arg ba of wrong type" Test: go test soong/... Change-Id: I4615f5ff77e1c2c41b84fd227462cdb3564d4369 --- bazel/properties.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/properties.go b/bazel/properties.go index 870d29366..1300a53e2 100644 --- a/bazel/properties.go +++ b/bazel/properties.go @@ -492,7 +492,7 @@ func (ba *BoolAttribute) Collapse() error { // Verify post-condition; this should never fail, provided no additional // axes are introduced. if len(ba.ConfigurableValues) > 1 { - panic(fmt.Errorf("error in collapsing attribute: %s", ba)) + panic(fmt.Errorf("error in collapsing attribute: %#v", ba)) } } return nil