From 7d1077f86d80bf17c037afa739f96005b0189980 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 16 Mar 2023 12:17:23 -0400 Subject: [PATCH] Fix: `ip` context is expressed as a base-10 field MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/lib/lttng-ust/lttng-context-ip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.34.1