diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/packet/bgp/constant.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/packet/bgp/constant.go b/pkg/packet/bgp/constant.go index f05ee4f2..6f87efdd 100644 --- a/pkg/packet/bgp/constant.go +++ b/pkg/packet/bgp/constant.go @@ -16,7 +16,6 @@ package bgp import ( - "fmt" "strconv" "strings" ) @@ -74,7 +73,7 @@ var ProtocolNameMap = map[Protocol]string{ func (p Protocol) String() string { name, ok := ProtocolNameMap[p] if !ok { - return fmt.Sprintf("%d", p) + return strconv.Itoa(int(p)) } return name } |