From: Jérémie Galarneau Date: Thu, 16 Mar 2023 16:17:23 +0000 (-0400) Subject: Fix: `ip` context is expressed as a base-10 field X-Git-Url: http://git.liburcu.org/?p=lttng-ust.git;a=commitdiff_plain;h=7d1077f86d80bf17c037afa739f96005b0189980 Fix: `ip` context is expressed as a base-10 field The base for UST context field `ip` was changed from 16 (hexadecimal) to 10 (decimal), most likely an unintentional copy&paste error in 4e48b5d. Base 16 is more common for addresses, hence this change should probably be reverted. Reported-by: Thomas Gatterweh Signed-off-by: Jérémie Galarneau Signed-off-by: Mathieu Desnoyers Change-Id: Ibb28a4768e99e1089577babf2fd74476ae367a89 --- diff --git a/src/lib/lttng-ust/lttng-context-ip.c b/src/lib/lttng-ust/lttng-context-ip.c index bc22ce29..56c8bbd1 100644 --- a/src/lib/lttng-ust/lttng-context-ip.c +++ b/src/lib/lttng-ust/lttng-context-ip.c @@ -54,7 +54,7 @@ static const struct lttng_ust_ctx_field *ctx_field = lttng_ust_static_ctx_field( lttng_ust_static_type_integer(sizeof(void *) * CHAR_BIT, lttng_ust_rb_alignof(void *) * CHAR_BIT, lttng_ust_is_signed_type(void *), - LTTNG_UST_BYTE_ORDER, 10), + LTTNG_UST_BYTE_ORDER, 16), false, false), ip_get_size, ip_record,