Skip to content

Commit

Permalink
dataconn: Fix error log
Browse files Browse the repository at this point in the history
Signed-off-by: Shuo Wu <shuo.wu@suse.com>
(cherry picked from commit 9fb17f6)
  • Loading branch information
shuo-wu committed Mar 13, 2024
1 parent 4790216 commit 3bcb810
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dataconn/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 3bcb810

Please sign in to comment.