aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-01-07 22:17:31 +0100
committerDamjan Marion <dmarion@me.com>2019-01-14 16:54:57 +0000
commit32ef1376d0b9ebc411dab5382aa8d69a0bbb4c6f (patch)
tree8abec3e48143514ad87f311e4cc365fc896eb074
parent04575c5e4790d7bc89d65297223c430d80cd4500 (diff)
api_helper_macro mp->pid is network endian
Change-Id: I7d2385b9e9bf5a62f3e9382ca2627a74a4e30785 Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--src/vlibapi/api_helper_macros.h2
1 files changed, 1 insertions, 1 deletions
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 { \