diff options
author | flyingeagle23 <wang.hui56@zte.com.cn> | 2017-04-26 20:22:04 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-04-27 07:33:46 +0000 |
commit | a07779f78526d7596336919dd3c9e7b455d2a05f (patch) | |
tree | efc7ed8b355e291797f254c96e2b288038c3cafe /src | |
parent | e8146b02ce4982036128f714ffca311e895dd02a (diff) |
[VPP-711] uri_tcp_test when master bind fail we met a display issue about retval
Change-Id: I320c9079576af5494c8336880a173e1f0ff096ad
Signed-off-by: flyingeagle23 <wang.hui56@zte.com.cn>
Diffstat (limited to 'src')
-rwxr-xr-x | src/uri/uri_tcp_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/uri/uri_tcp_test.c b/src/uri/uri_tcp_test.c index 0b4aae3700f..b15fd6ced65 100755 --- a/src/uri/uri_tcp_test.c +++ b/src/uri/uri_tcp_test.c @@ -173,6 +173,8 @@ wait_for_state_change (uri_tcp_test_main_t * utm, connection_state_t state) return 0; if (utm->state == STATE_FAILED) return -1; + if (utm->time_to_stop == 1) + return -1; } clib_warning ("timeout waiting for STATE_READY"); return -1; @@ -736,7 +738,7 @@ vl_api_bind_uri_reply_t_handler (vl_api_bind_uri_reply_t * mp) if (mp->retval) { - clib_warning ("bind failed: %s", format_api_error, + clib_warning ("bind failed: %U", format_api_error, clib_net_to_host_u32 (mp->retval)); utm->state = STATE_FAILED; return; |