Skip to content

Commit

Permalink
fix log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan committed Oct 18, 2023
1 parent e4669fa commit e9bd981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/loxinlp/nlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e9bd981

Please sign in to comment.