From 9fb17f654be3b46c181c3eaf2800d609e1d0e346 Mon Sep 17 00:00:00 2001 From: Shuo Wu Date: Tue, 12 Mar 2024 21:24:44 -0700 Subject: [PATCH] dataconn: Fix error log Signed-off-by: Shuo Wu --- pkg/dataconn/wire.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dataconn/wire.go b/pkg/dataconn/wire.go index a8d409bda..2f895a5cb 100644 --- a/pkg/dataconn/wire.go +++ b/pkg/dataconn/wire.go @@ -72,7 +72,7 @@ func (w *Wire) Read() (*Message, error) { msg.MagicVersion = binary.LittleEndian.Uint16(w.readHeader[offset:]) if msg.MagicVersion != MagicVersion { - return nil, fmt.Errorf("wrong API version received: 0x%x", &msg.MagicVersion) + return nil, fmt.Errorf("wrong API version received: 0x%x", msg.MagicVersion) } offset += int(unsafe.Sizeof(msg.MagicVersion))