From 4ca232ecdf15216bb26484911b54f434dd6d09cc Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Thu, 28 Jun 2018 16:05:00 +0100 Subject: [PATCH] qmp_test: Fix Warning and Error level logs This commit fixes an issue with the log handlers defined by qmp_test. The issue was picked up by the latest version of go vet on go tip. qemu/qmp_test.go:56::error: missing ... in args forwarded to printf-like function (vet) qemu/qmp_test.go:60::error: missing ... in args forwarded to printf-like function (vet) Signed-off-by: Mark Ryan --- qemu/qmp_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/qmp_test.go b/qemu/qmp_test.go index f5b472d741..2abb196c04 100644 --- a/qemu/qmp_test.go +++ b/qemu/qmp_test.go @@ -53,11 +53,11 @@ func (l qmpTestLogger) Infof(format string, v ...interface{}) { } func (l qmpTestLogger) Warningf(format string, v ...interface{}) { - l.Infof(format, v) + l.Infof(format, v...) } func (l qmpTestLogger) Errorf(format string, v ...interface{}) { - l.Infof(format, v) + l.Infof(format, v...) } type qmpTestCommand struct {