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 <mark.d.ryan@intel.com>
This commit is contained in:
Mark Ryan 2018-06-28 16:05:00 +01:00
parent 430e72c63b
commit 4ca232ecdf

View File

@ -53,11 +53,11 @@ func (l qmpTestLogger) Infof(format string, v ...interface{}) {
} }
func (l qmpTestLogger) Warningf(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{}) { func (l qmpTestLogger) Errorf(format string, v ...interface{}) {
l.Infof(format, v) l.Infof(format, v...)
} }
type qmpTestCommand struct { type qmpTestCommand struct {