From e9bd9813cfd8662bea81f32b83bce2b2150a50e6 Mon Sep 17 00:00:00 2001 From: Cybwan Date: Wed, 18 Oct 2023 13:56:54 +0800 Subject: [PATCH] fix log messages. --- api/loxinlp/nlp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/loxinlp/nlp.go b/api/loxinlp/nlp.go index dc13745c1..29cc53c0d 100644 --- a/api/loxinlp/nlp.go +++ b/api/loxinlp/nlp.go @@ -304,7 +304,7 @@ func DelFDBNoHook(macAddress, ifName string) int { var ret int MacAddress, err := net.ParseMAC(macAddress) if err != nil { - tk.LogIt(tk.LogWarning, "[NLP] Port %s find Fail\n", ifName) + tk.LogIt(tk.LogWarning, "[NLP] MacAddress Parse %s Fail\n", macAddress) return -1 } IfName, err := nlp.LinkByName(ifName) @@ -340,7 +340,7 @@ func AddNeighNoHook(address, ifName, macAddress string) int { } MacAddress, err := net.ParseMAC(macAddress) if err != nil { - tk.LogIt(tk.LogWarning, "[NLP] Port %s find Fail\n", ifName) + tk.LogIt(tk.LogWarning, "[NLP] MacAddress Parse %s Fail\n", macAddress) return -1 } // Make Neigh