From 9bad39a594703dac16161f964e024de1a2f58869 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Sat, 14 Oct 2023 18:30:08 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf Signed-off-by: guoguangwu --- pixiecore/dhcpv6.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixiecore/dhcpv6.go b/pixiecore/dhcpv6.go index d11c9810..9e3877ab 100644 --- a/pixiecore/dhcpv6.go +++ b/pixiecore/dhcpv6.go @@ -23,10 +23,10 @@ func (s *ServerV6) serveDHCP(conn *dhcp6.Conn) error { if err != nil { s.log("dhcpv6", fmt.Sprintf("Error creating response for transaction: %d: %s", pkt.TransactionID, err)) if response == nil { - s.log("dhcpv6", fmt.Sprintf("Dropping the packet")) + s.log("dhcpv6", "Dropping the packet") continue } else { - s.log("dhcpv6", fmt.Sprintf("Will notify the client")) + s.log("dhcpv6", "Will notify the client") } } if response == nil {