diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2023-05-10 12:05:55 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2023-05-10 20:00:36 +0000 |
commit | 0b7200f7eef8881018c1e6dfb7ef10cf1e221362 (patch) | |
tree | c41b286bc581d2097c4583c5a6fb881fd64fa38c /src/vlibapi/api_shared.c | |
parent | 0e8ec6468bf77c699210216a4952cd27e1b45166 (diff) |
api: clean up error message
- remove non-inclusive language in message and improve
clarity of the error message
Type: style
Change-Id: I3f4895d6a502c2583a8b6b3c325a3f30ced03f84
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vlibapi/api_shared.c')
-rw-r--r-- | src/vlibapi/api_shared.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c index 0ea52802bb7..d2f17593284 100644 --- a/src/vlibapi/api_shared.c +++ b/src/vlibapi/api_shared.c @@ -1060,8 +1060,9 @@ vl_api_from_api_to_new_vec (void *mp, vl_api_string_t * astr) u8 *v = 0; if (vl_msg_api_max_length (mp) < clib_net_to_host_u32 (astr->length)) - return format (0, "insane astr->length %u%c", - clib_net_to_host_u32 (astr->length), 0); + return format (0, "Invalid astr->length %u > max (%u)%c", + clib_net_to_host_u32 (astr->length), + vl_msg_api_max_length (mp), 0); vec_add (v, astr->buf, clib_net_to_host_u32 (astr->length)); return v; } |