From d6cb943f87f81e85a04cd2369d4761dec62a1d02 Mon Sep 17 00:00:00 2001 From: JackLCL Date: Mon, 13 Dec 2021 13:26:08 +0800 Subject: [PATCH] [skip ci]Fix error log output format in convension.go (#13228) Signed-off-by: JackLCL --- internal/util/typeutil/convension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/typeutil/convension.go b/internal/util/typeutil/convension.go index 29ac4c67e1..b9ba88eba8 100644 --- a/internal/util/typeutil/convension.go +++ b/internal/util/typeutil/convension.go @@ -39,7 +39,7 @@ func BytesToFloat32(bytes []byte) float32 { // BytesToInt64 converts a byte slice to uint64. func BytesToInt64(b []byte) (int64, error) { if len(b) != 8 { - return 0, fmt.Errorf("Failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b)) + return 0, fmt.Errorf("failed to convert []byte to int64: invalid data, must 8 bytes, but %d", len(b)) } return int64(common.Endian.Uint64(b)), nil