From: Ole Troan Date: Mon, 7 Jan 2019 21:17:31 +0000 (+0100) Subject: api_helper_macro mp->pid is network endian X-Git-Tag: v19.04-rc0~5 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F16720%2F4;p=vpp.git api_helper_macro mp->pid is network endian Change-Id: I7d2385b9e9bf5a62f3e9382ca2627a74a4e30785 Signed-off-by: Ole Troan --- diff --git a/src/vlibapi/api_helper_macros.h b/src/vlibapi/api_helper_macros.h index e3241706431..3a011dae2b6 100644 --- a/src/vlibapi/api_helper_macros.h +++ b/src/vlibapi/api_helper_macros.h @@ -183,7 +183,7 @@ static void vl_api_want_##lca##_t_handler ( \ p = hash_get (vam->lca##_registration_hash, mp->client_index); \ if (p) { \ if (mp->enable_disable) { \ - clib_warning ("pid %d: already enabled...", mp->pid); \ + clib_warning ("pid %d: already enabled...", ntohl(mp->pid)); \ rv = VNET_API_ERROR_INVALID_REGISTRATION; \ goto reply; \ } else { \