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>
  • Loading branch information
shuo-wu authored and innobead committed Mar 13, 2024
1 parent 69c0045 commit 9fb17f6
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 9fb17f6

Please sign in to comment.