Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp131182iob; Tue, 17 May 2022 21:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFLRUsECMhPUHyEqJ008qoPerc5+bFIG1i6O8pFiyv+DhJvaF3NYTa85wDYmTweR2sIjR2 X-Received: by 2002:a17:903:24f:b0:15c:e3b8:a640 with SMTP id j15-20020a170903024f00b0015ce3b8a640mr25242033plh.5.1652847399214; Tue, 17 May 2022 21:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847399; cv=none; d=google.com; s=arc-20160816; b=GrnWDUouvimqfkNrv+gD8skDu+HC61sqCW6eFeGocQBcK2XntqcS3m+j9w6MxO5TcI e6M8i8Go4tbobq0nSnn4WIo3K62uAhN7jnwBxKqa9WH9XFuQu5oAIoZJMDvnAEKZBJNt 7GvCmaHpGTJv/xOrfueobiS1+oy1SOLCyuFhqeHwCLxhGPMU/jxF/YT7hJ7MOamc+/+J 3zT7SM4y2kY5/z4XoLqpGC1M5GdCdqfIattRsmcIifIEmUrkUnJQDaAUc/4Rg6MBV8U6 zvCUrLcxOkZ1vH6ekKdiuRNwZ+U64W3PybqrHAO8Hh1tvbREfd6wt1qH+MqUJMNjLIvR 2ymQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lFebp8GWm+E9ZaauBpIgSO5O2fr4/WEc+bz5v/1+8xY=; b=Ozc9MmJVmQs8lQNxZRxLgsEqh1LRbe4if6o0ayGXwwqsGk1e71RUNAdoTN1o0vwN29 5Bnnc4s/VDeQRfWXelbloda5JTNNJRsYc/AqMkXLFk0ZmHOjfnSwUkDIJkGUuUWxtFBH oMhSOHAzNp+TeiwBIxcun9tJajVbI4ubWBD7eTYA8LdOJ1r77TCVqWUP42LaFMMl6Zym N5OhlRLL/HXGpGu9E4FXd4cTFoGpD+h3FpJyiYApGk1tnpUa8+mtgrbK704mCIkpoGvP LyqaQodEMCzesiMiD1wOL9MJFaTFOamvyFDTP9Gy84Gr8CNR2EDLrVVIRHeadsPDVBca FX/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=aSlm6sFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s18-20020a170903201200b0015e8c77a599si1189319pla.1.2022.05.17.21.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:16:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20210112 header.b=aSlm6sFN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DCB429D4EC; Tue, 17 May 2022 20:45:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352819AbiEQTlS (ORCPT + 99 others); Tue, 17 May 2022 15:41:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352800AbiEQTky (ORCPT ); Tue, 17 May 2022 15:40:54 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8BEC658E; Tue, 17 May 2022 12:40:51 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id fd25so244667edb.3; Tue, 17 May 2022 12:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lFebp8GWm+E9ZaauBpIgSO5O2fr4/WEc+bz5v/1+8xY=; b=aSlm6sFNppPd7mY8twJg7ZgB184RbTToOakF+zNn9NUhHKmAhEE7Fr8lMJtCbZav+n wXwPoTGF8DPLcRIj7vcPqLYEF/EYJ4l+VS1/B8XxIJ2cCesB6XK7uO+CyggGB2wu+wSg /amgYedGTjSKM8JAhzSdWjVVuLLu1D7fYoxUtvNWhwW95nQDCfmaGFM26P2kS1Jag0ws DlElO+Rap9Wxdlegoe5Imrv69ODZ3w5XvFe8/t+wnNYSNFamj96N3O5hV94HOzs29QQ1 MYVJft9UpbxKvW+ViVUywX6jdKxTo78NkiNrcTVyKxKLEIsdIHxxGtOpcv2gEdh0csHr PJcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lFebp8GWm+E9ZaauBpIgSO5O2fr4/WEc+bz5v/1+8xY=; b=vyrldxf4OENKnAT/PqwhdsxujeIBOhXazSh/vGz7U9Z7uLC6GcZAzi3ysbrcnniFGQ 2k7ktVY214AOl0i8grJYTgavLi3pTP5aeXvC2nHw7bKTR5dt/ovayZsjz3j3fle89sqm 6McIWa4J9QLJPU18x83yH/+cV+k9lWAU2l0Gkskkeq5xgI7zD0lpf48hLQmXxUNp+84j 1/a/jf1+WI1CapP6rG+3FIIOpLWsE3alxCIvuQJJpfhw8zYVUJwJnzHwWQm8j+1f3KUs fzUbR5TUsOAi9GYpor9EOGq7+ZU6dq6iDeihzWP44MJQL+EGAkW0xrN88QFqhyQvDEfA btGw== X-Gm-Message-State: AOAM531f4qdEegOLRRaFPajaAbYlxIukuAeAj++OsWprtMNKWe/UMXuH kvkWH0j+6y51XvjPNVT2s0yUte7CBSk= X-Received: by 2002:a05:6402:294e:b0:425:f016:24e7 with SMTP id ed14-20020a056402294e00b00425f01624e7mr20767419edb.111.1652816450081; Tue, 17 May 2022 12:40:50 -0700 (PDT) Received: from localhost.localdomain (dynamic-095-118-074-246.95.118.pool.telefonica.de. [95.118.74.246]) by smtp.googlemail.com with ESMTPSA id 25-20020a17090600d900b006fe0abb00f0sm40669eji.209.2022.05.17.12.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 12:40:49 -0700 (PDT) From: Martin Blumenstingl To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Martin Blumenstingl , Hauke Mehrtens Subject: [PATCH net v1 2/2] net: dsa: lantiq_gswip: Fix typo in gswip_port_fdb_dump() error print Date: Tue, 17 May 2022 21:40:15 +0200 Message-Id: <20220517194015.1081632-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220517194015.1081632-1-martin.blumenstingl@googlemail.com> References: <20220517194015.1081632-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gswip_port_fdb_dump() reads the MAC bridge entries. The error message should say "failed to read mac bridge entry". While here, also add the index to the error print so humans can get to the cause of the problem easier. Fixes: 58c59ef9e930c4 ("net: dsa: lantiq: Add Forwarding Database access") Acked-by: Hauke Mehrtens Signed-off-by: Martin Blumenstingl --- drivers/net/dsa/lantiq_gswip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 0c313db23451..8af4def38a98 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1426,8 +1426,9 @@ static int gswip_port_fdb_dump(struct dsa_switch *ds, int port, err = gswip_pce_table_entry_read(priv, &mac_bridge); if (err) { - dev_err(priv->dev, "failed to write mac bridge: %d\n", - err); + dev_err(priv->dev, + "failed to read mac bridge entry %d: %d\n", + i, err); return err; } -- 2.36.1