From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9431E4383B; Fri, 5 Jan 2024 10:03:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6DD5840649; Fri, 5 Jan 2024 10:03:07 +0100 (CET) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by mails.dpdk.org (Postfix) with ESMTP id DABED402B8 for ; Sun, 24 Dec 2023 23:02:11 +0100 (CET) Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-78113481f91so285440485a.3 for ; Sun, 24 Dec 2023 14:02:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=threater-com.20230601.gappssmtp.com; s=20230601; t=1703455331; x=1704060131; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kK4B2fv2NE3lMYDQbKLN/mA5zvCdHVgY/aJVeBkJM9A=; b=bBpyjMZ51WRD+4IhF4CPyalJm449jGAS4D4res3vrIN3vEdoLpX/hWqC4Ub6VaunMa D6kc9OU6RMDrKCiAyvcoTawk6xLlO8OFQS5HojZ0UEmbojbThaJ9eeCEmSnmwuLXY+aE uJNdWFSo1o9UerTsm5Ab+6v4FqUUbdWOl4vlkM/WF7+b3JxAh8Qf1TedYtwNmNk9zp0R jkd+fTQQPqkMjSKEhUoO5cDzagLuwqeI/SinKC68KpxV0+dshvXodbkGjKocn/LOP3YA lg0xPFcxPBBTpUhYLEt/jsgwHMz89GvxzYiThh4kYj5Dhl6hq37Z6o2vWum9EB7mL7rP 3CmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703455331; x=1704060131; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kK4B2fv2NE3lMYDQbKLN/mA5zvCdHVgY/aJVeBkJM9A=; b=XC1E47yw2OwkZLxpboY8I+du3/XumbLzym2giDQh2pQrdYx6LqhNI3i4OlGo/AtTSi QHAvzM9TJvpF8uwQH52yHTto9KHtNUXRnNPf6AA15Fp7GW7E6VfZ3rNfXmgzkmHNuHC8 oMbzkddyi07vT9a/w5/VCLxdEx2U6tbS9OFUA5kHHi18ufheK50euu6tvOEU6RHeNOaz KNvj2CDNmg6XCF5gyJMZU/SBbXQjslJHP9Xh5olAHaP0qixDgHJS8leJls3dYUf9PcaW i75xXbYTOrcF0wMSVayrvHFJipFTqHYu18fuGGQTkk9aqL/b9xNxFxYOeIuoyOCUiVwr a0bg== X-Gm-Message-State: AOJu0Yxf6vB7MttuHncxr/OEpHkek5M5vLm1Fem+JrpIuJusY47orWrx kHTG7Ueuxp47sGDYMBEU4RBpp7OHQCT7CBV7vAwAlumbKv0= X-Google-Smtp-Source: AGHT+IFVgiGN7zjHW+dfnoYRXtA306ptmHu8hcMMx2sWwcx/Nhl9/14w9xNkWYuvUiLr/o0BcvfBkQ== X-Received: by 2002:a05:620a:10b7:b0:780:fc57:3bb7 with SMTP id h23-20020a05620a10b700b00780fc573bb7mr6118385qkk.69.1703455331288; Sun, 24 Dec 2023 14:02:11 -0800 (PST) Received: from localhost.localdomain (dyn-170-246-97.myactv.net. [24.170.246.97]) by smtp.gmail.com with ESMTPSA id bi5-20020a05620a318500b0077efb969151sm3045939qkb.59.2023.12.24.14.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 14:02:11 -0800 (PST) From: Jonathan Erb To: ciara.power@intel.com Cc: dev@dpdk.org, Jonathan Erb Subject: [PATCH v2 2/2] telemetry: correct json empty dictionaries Date: Sun, 24 Dec 2023 17:02:01 -0500 Message-Id: <20231224220201.762377-2-jonathan.erb@threater.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231224220201.762377-1-jonathan.erb@threater.com> References: <20231224220201.762377-1-jonathan.erb@threater.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 05 Jan 2024 10:03:03 +0100 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Fix use of incorrect enum name. Signed-off-by: Jonathan Erb --- 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