Fix: `ip` context is expressed as a base-10 field
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 16 Mar 2023 16:17:23 +0000 (12:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Mar 2023 16:52:50 +0000 (12:52 -0400)
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 <thomas.gatterweh@siemens.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ibb28a4768e99e1089577babf2fd74476ae367a89

src/lib/lttng-ust/lttng-context-ip.c

index bc22ce296155b1d23d65e229226566ffbfdb1de2..56c8bbd1182b3f663388a10b77113def3b6db74c 100644 (file)
@@ -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,
This page took 0.027203 seconds and 4 git commands to generate.