diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-08 23:53:33 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-02-08 23:53:33 +0900 |
commit | 2820c43e2d92c0c5cfcab996fa84459784f7b238 (patch) | |
tree | eefd4a223e0391fb33fb779f78e93ea0cbb6c073 /packet | |
parent | 364d8fa1847e5ceca442ee6eceeccee0b671bc86 (diff) |
packet: fix Sprintf format
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet')
-rw-r--r-- | packet/validate.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet/validate.go b/packet/validate.go index 668552ba..143aefc9 100644 --- a/packet/validate.go +++ b/packet/validate.go @@ -203,11 +203,11 @@ func ValidateOpenMsg(m *BGPOpen, expectedAS uint32) error { } } if as != expectedAS { - return NewMessageError(BGP_ERROR_OPEN_MESSAGE_ERROR, BGP_ERROR_SUB_BAD_PEER_AS, nil, fmt.Sprintf("as number mismatch expected %u, received %u", expectedAS, as)) + return NewMessageError(BGP_ERROR_OPEN_MESSAGE_ERROR, BGP_ERROR_SUB_BAD_PEER_AS, nil, fmt.Sprintf("as number mismatch expected %d, received %d", expectedAS, as)) } if m.HoldTime < 3 && m.HoldTime != 0 { - return NewMessageError(BGP_ERROR_OPEN_MESSAGE_ERROR, BGP_ERROR_SUB_UNACCEPTABLE_HOLD_TIME, nil, fmt.Sprintf("unacceptable hold time %u", m.HoldTime)) + return NewMessageError(BGP_ERROR_OPEN_MESSAGE_ERROR, BGP_ERROR_SUB_UNACCEPTABLE_HOLD_TIME, nil, fmt.Sprintf("unacceptable hold time %d", m.HoldTime)) } return nil } |