From 2be5cae32d33f01ddecf6f167a9c0e5290e6d58f Mon Sep 17 00:00:00 2001 From: Christopher Koch Date: Sun, 20 Jan 2019 21:50:04 +0000 Subject: dhcpv4: fix TransactionID in Summary --- dhcpv4/dhcpv4.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go index 1aa2603..bbb2f37 100644 --- a/dhcpv4/dhcpv4.go +++ b/dhcpv4/dhcpv4.go @@ -356,19 +356,19 @@ func (d *DHCPv4) String() string { func (d *DHCPv4) Summary() string { ret := fmt.Sprintf( "DHCPv4\n"+ - " opcode=%v\n"+ - " hwtype=%v\n"+ + " opcode=%s\n"+ + " hwtype=%s\n"+ " hopcount=%v\n"+ - " transactionid=0x%08x\n"+ + " transactionid=%s\n"+ " numseconds=%v\n"+ " flags=%v (0x%02x)\n"+ - " clientipaddr=%v\n"+ - " youripaddr=%v\n"+ - " serveripaddr=%v\n"+ - " gatewayipaddr=%v\n"+ - " clienthwaddr=%v\n"+ - " serverhostname=%v\n"+ - " bootfilename=%v\n", + " clientipaddr=%s\n"+ + " youripaddr=%s\n"+ + " serveripaddr=%s\n"+ + " gatewayipaddr=%s\n"+ + " clienthwaddr=%s\n"+ + " serverhostname=%s\n"+ + " bootfilename=%s\n", d.OpCode, d.HWType, d.HopCount, -- cgit v1.2.3