diff options
author | Colin Cross <ccross@android.com> | 2018-03-21 16:25:58 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-03-28 15:54:52 -0700 |
commit | f46e37f5f79bd7111aed84f6cf172f20431ec010 (patch) | |
tree | f41e50333685523db810873c0fd88e8446b08264 /androidmk/cmd | |
parent | 2b53a0c4b89397f853fc0479340ee09b1f29cc18 (diff) | |
download | build_soong-f46e37f5f79bd7111aed84f6cf172f20431ec010.tar.gz build_soong-f46e37f5f79bd7111aed84f6cf172f20431ec010.tar.bz2 build_soong-f46e37f5f79bd7111aed84f6cf172f20431ec010.zip |
Fix format string issues
Fix issues caught by go vet.
Test: m checkbuild
Change-Id: Ib8d740457c15432dabe1575a6707726ddaf93084
Diffstat (limited to 'androidmk/cmd')
-rw-r--r-- | androidmk/cmd/androidmk/android.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/androidmk/cmd/androidmk/android.go b/androidmk/cmd/androidmk/android.go index 960f103c..91f47e0f 100644 --- a/androidmk/cmd/androidmk/android.go +++ b/androidmk/cmd/androidmk/android.go @@ -258,7 +258,7 @@ func classifyLocalOrGlobalPath(value bpparser.Expression) (string, bpparser.Expr } case *bpparser.Operator: if v.Type() != bpparser.StringType { - return "", nil, fmt.Errorf("classifyLocalOrGlobalPath expected a string, got %s", value.Type) + return "", nil, fmt.Errorf("classifyLocalOrGlobalPath expected a string, got %s", v.Type()) } if v.Operator != '+' { @@ -289,7 +289,7 @@ func classifyLocalOrGlobalPath(value bpparser.Expression) (string, bpparser.Expr case *bpparser.String: return "global", value, nil default: - return "", nil, fmt.Errorf("classifyLocalOrGlobalPath expected a string, got %s", value.Type) + return "", nil, fmt.Errorf("classifyLocalOrGlobalPath expected a string, got %s", v.Type()) } } |