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 CA50945D0B; Fri, 15 Nov 2024 07:08:38 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0631542FAD; Fri, 15 Nov 2024 07:08:02 +0100 (CET) Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) by mails.dpdk.org (Postfix) with ESMTP id D0EBB42F7A for ; Fri, 15 Nov 2024 07:07:56 +0100 (CET) Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20caea61132so13141705ad.2 for ; Thu, 14 Nov 2024 22:07:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731650876; x=1732255676; 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=SnsSElF7pGVldQIwznNnqO3m1XgrEnDUh+7kEk0mglc=; b=AlCujfu2BCFfrVMblee9edQ1MxamjXFOyiizj+s6iuG1eNqrsScSrV9zcuRpXDl0+u hR9mygYpOsDqkJNoKsm3xG4zhaqTKSNo6eY51ZSVB65XcRYxyjru0FCA+uXJuSAttPWu ZQFUsdSbzcj2CRitQm0Q7Mrxji4FXLFjUfFwVgkpe6Kh5PKAyPaKhbUotg0LJtu6zjx3 lC/vPVU3e8R824Ng1xt7lTonitc9iAStyuGiXR/yTkoyDK/31L1PimxRqBV9yBrThme0 FE06/Kg4Iz7Ik+vH2T3wlx8uoE9MooggBxwcAYMMhL2ZDmBl4vjOL5CVegABFn/1fdJA aIDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731650876; x=1732255676; 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=SnsSElF7pGVldQIwznNnqO3m1XgrEnDUh+7kEk0mglc=; b=Hq2h7K7gjxh/CKhQK5VFXCP7V5uNjCz6HZvpycXwHyD4AlfzKy2gvy4wGIplfXaWHk 0NaVL7p/RpTpPMRmOPp2ndhcDShZQflN/XOk3IzX17QsSPhMNRQOtLh0CC0tFbH7/J3U biICItE3kB3kLzGWJEvzB6wABMSCrd1B+VQD75Tp/X5n6xGoWhVU2Emajqr0hFAxysO7 U9uQs/aws3Jz7glZi8pol5qrIc484Y3DyaHOl4oUsFYaqxYgiYsQKS4CT7dz6G+JT+Ag A1lPmVWz6PtJ4X14cL+VhCI9nqEj0ditX0G5sjclOytVhvgjn64sFRq0jOUt1KulgB8a uo+g== X-Gm-Message-State: AOJu0YyQf4YcxX7DSjwbFlsu3J46778f2SCGZQFa5x5zCWDNZNyBKWgM GD3qlKCW9PMUEfmLk3nn/dHTjuzu/7IaAdGpdzWrIHBktY5QwnBut19nUs/GkbIoFp50PWZX4A2 z X-Google-Smtp-Source: AGHT+IHKdfLie8xyvgkjMYCtcHoc9qunjRoVRYi+Bo+XLo6G5k8U5lceg3fSFKIm5TrEpoVv4RTfsw== X-Received: by 2002:a05:6a21:789f:b0:1db:ff9d:1560 with SMTP id adf61e73a8af0-1dc90b46e3emr2145877637.18.1731650875967; Thu, 14 Nov 2024 22:07:55 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ea06f4856esm2123781a91.23.2024.11.14.22.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2024 22:07:55 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , rmody@marvell.com, stable@dpdk.org, Devendra Singh Rawat , Alok Prasad , Igor Russkikh Subject: [PATCH 07/16] net/qede: fix missing debug string Date: Thu, 14 Nov 2024 22:05:44 -0800 Message-ID: <20241115060738.313190-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241115060738.313190-1-stephen@networkplumber.org> References: <20241115060738.313190-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The array of debug status strings did not match possible enum values. Add the missing element and a static assert to make sure the table has all possible values. For more complete description see. Link: https://pvs-studio.com/en/blog/posts/cpp/1176/ Fixes: ec55c118792b ("net/qede: add infrastructure for debug data collection") Cc: rmody@marvell.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- drivers/net/qede/qede_debug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/qede/qede_debug.c b/drivers/net/qede/qede_debug.c index 18f2d988fb..4997f98a5d 100644 --- a/drivers/net/qede/qede_debug.c +++ b/drivers/net/qede/qede_debug.c @@ -5614,6 +5614,8 @@ static const char * const s_status_str[] = { /* DBG_STATUS_INVALID_FILTER_TRIGGER_DWORDS */ "The filter/trigger constraint dword offsets are not enabled for recording", + /* DBG_STATUS_NO_MATCHING_FRAMING_MODE */ + "No matching frame mode", /* DBG_STATUS_VFC_READ_ERROR */ "Error reading from VFC", @@ -5759,6 +5761,7 @@ static const char * const s_status_str[] = { /* DBG_STATUS_MISSING_TRIGGER_STATE_STORM */ "When triggering on Storm data, the Storm to trigger on must be specified" }; +static_assert(MAX_DBG_STATUS == RTE_DIM(s_status_str), "status string table mismatch"); /* Idle check severity names array */ static const char * const s_idle_chk_severity_str[] = { -- 2.45.2