summaryrefslogtreecommitdiffhomepage
path: root/packet/validate.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-08 23:53:33 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-02-08 23:53:33 +0900
commit2820c43e2d92c0c5cfcab996fa84459784f7b238 (patch)
treeeefd4a223e0391fb33fb779f78e93ea0cbb6c073 /packet/validate.go
parent364d8fa1847e5ceca442ee6eceeccee0b671bc86 (diff)
packet: fix Sprintf format
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/validate.go')
-rw-r--r--packet/validate.go4
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
}