diff options
Diffstat (limited to 'internal/pkg/zebra/ptm_status_string.go')
-rw-r--r-- | internal/pkg/zebra/ptm_status_string.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/pkg/zebra/ptm_status_string.go b/internal/pkg/zebra/ptm_status_string.go index 464233b7..031e7c01 100644 --- a/internal/pkg/zebra/ptm_status_string.go +++ b/internal/pkg/zebra/ptm_status_string.go @@ -2,7 +2,7 @@ package zebra -import "fmt" +import "strconv" const _PTM_STATUS_name = "PTM_STATUS_DOWNPTM_STATUS_UPPTM_STATUS_UNKNOWN" @@ -10,7 +10,7 @@ var _PTM_STATUS_index = [...]uint8{0, 15, 28, 46} func (i PTM_STATUS) String() string { if i >= PTM_STATUS(len(_PTM_STATUS_index)-1) { - return fmt.Sprintf("PTM_STATUS(%d)", i) + return "PTM_STATUS(" + strconv.FormatInt(int64(i), 10) + ")" } return _PTM_STATUS_name[_PTM_STATUS_index[i]:_PTM_STATUS_index[i+1]] } |