[PATCH v2 2/2] telemetry: correct json empty dictionaries
Bruce Richardson
bruce.richardson at intel.com
Mon Jan 8 12:02:39 CET 2024
On Sun, Dec 24, 2023 at 05:02:01PM -0500, Jonathan Erb wrote:
> Fix use of incorrect enum name.
>
> Signed-off-by: Jonathan Erb <jonathan.erb at threater.com>
Please merge this fix into patch 1, so we only have a single commit to the
repo.
Thanks,
/Bruce
> ---
> lib/telemetry/telemetry.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/telemetry/telemetry.c b/lib/telemetry/telemetry.c
> index 0788a32210..eef4ac7bb7 100644
> --- a/lib/telemetry/telemetry.c
> +++ b/lib/telemetry/telemetry.c
> @@ -169,7 +169,7 @@ container_to_json(const struct rte_tel_data *d, char *out_buf, size_t buf_len)
> d->type != TEL_ARRAY_INT && d->type != TEL_ARRAY_STRING)
> return snprintf(out_buf, buf_len, "null");
>
> - if (d->type == RTE_TEL_DICT)
> + if (d->type == TEL_DICT)
> used = rte_tel_json_empty_obj(out_buf, buf_len, 0);
> else
> used = rte_tel_json_empty_array(out_buf, buf_len, 0);
> --
> 2.34.1
>
More information about the dev
mailing list