Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp389257iob; Wed, 18 May 2022 04:35:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVFhuToq3IegTZgTKh4sbfA4tzwURac+pB01mTrg521Lo2WQi3OrCqUrANdqJlFFJjZjAR X-Received: by 2002:a17:902:e54b:b0:161:a06e:b82d with SMTP id n11-20020a170902e54b00b00161a06eb82dmr9225869plf.152.1652873700632; Wed, 18 May 2022 04:35:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652873700; cv=none; d=google.com; s=arc-20160816; b=iHUoDFyT+dBp4utdC+cfV0FsCqUBwQLFFAPeXRPtz41ts6AEPlxcq5aLtLJlGYu+lB J2qEa42X+qq+ADbUM3dGbcmNYELBxXfnuwz7p2euOo61Q+XPjMaCLLnuwoSJ02MAfkw3 9wqsHliZDiKzYxAp8BAT3222jqTz7rNz1NSicQBKafoU+J6MiLb6mPu0oek9kLTi293c Gs0hhCu5ouTL2Pp+/+ZZiBQZRKnRY8bmKr03KmEfD1HlYeABXVTLCXHG1pQHUmxgFj+1 vutvDODFBLw4EybUhikabNaKDzwix9k6QETBWygo52yCMvxIILkuuTrW7xTXiwBg8QPC 7CYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gJ3rsnwq2b/rwZyiM+K6St2dD//MHaJRGiRZ+2rN6jw=; b=M3jFZKb8Uiz1poo+Ndxfqzrq9Gv+MVpkI8V1zp46cvzrr1Z02Gtis1R6EpgiDSbYWf //fN9fPcNmqHrGpIktc/zOCfhJFXdm6xlG5AHFz7KkoIpyetRVFfqfnWt/9sd3K9TISP WX7SLnKNG0cHjGbOIcal7vYVqDlHnTSqMkHtv+MXbX4V8u7NP66F+vnN6+XdCPDycTbu bJtcVSiXDgYffhXUpvTBj1ZwyroSeOSk58Ic4aweUwFoXFa4OxxkC3sxmcPe+Cht1LR7 15jDQIt29ZosF/bNYk84xXAg3Pm0deAZEMHNpCQnMUwYRbrduhp+jF8Zb+ucMYHGXX9I G9GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=boSZSG16; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p8-20020a170902a40800b00153b2d165b0si2378342plq.440.2022.05.18.04.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:35:00 -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=@gmail.com header.s=20210112 header.b=boSZSG16; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF68916499C; Wed, 18 May 2022 04:33:42 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235698AbiERLda (ORCPT + 99 others); Wed, 18 May 2022 07:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235652AbiERLdY (ORCPT ); Wed, 18 May 2022 07:33:24 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E4A5C878; Wed, 18 May 2022 04:33:20 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id i40so2584758eda.7; Wed, 18 May 2022 04:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gJ3rsnwq2b/rwZyiM+K6St2dD//MHaJRGiRZ+2rN6jw=; b=boSZSG16VTmcUf9r+ZEJo1bDXBXu800Ay6RdbxwGTxtnWhZtEKXO1kS/q9r6t4Tbci qL3ppu4OcqJi0yGfUQ8PEQXAM37v19+vWyt/KkmPyWYi6F0LLZnjXPCGdz/3bKRQkXZT lacgus8QOEdvO43y/iK1HshJzwZ7xXyaUplatLnYfmn6pXxRT82uMM4Ni2/WHTR2II8K ALtwTOzMDdk6fjrCaMfZyt2H6ggyBkfLPti/+alKhAF/HQkLqC1+TCdXR0w9sBbi7H1e 1GE0pCaRFMH3c9+2fLt8NFmnwIkMfkpwnJWn/kpqhAWWfbEdxxxPjRoOzTV/7SuTb4wQ SHww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gJ3rsnwq2b/rwZyiM+K6St2dD//MHaJRGiRZ+2rN6jw=; b=buWKwSzrfJUXVJQ5jCuzZn3JGe3F6f+ajsWYfur5yGEyavNFP+JXdEwKBEps+kOxw9 X4gI12v03touR18QQmmv6e2WJqDegjLZJ8H3IdJrqqCOJPXS7IoszjmUm97i8JREzUWe LDxxrG2DU1wvUdQsaynZ/Jqd5CUqX3KpMdA/LpiqkuMQ1RBJqXS4hGmonFdtHo3GCENi LZsO+CcdrBzQOnCQy9cy+EP+H5P7njGMXwxYYNaSWdJfTh1o30RbEUWvQsLSu+0LCs25 f+4vH//BDp0nnUYorBTj186o6pZo+YKD9JLgxkuSU1C1Rxu0zc5QvwYDJfrliUBuvgH2 S0RA== X-Gm-Message-State: AOAM532EHBsDkXMqEt+Uoe16kOJ32QISUgnmWntyS+uvpmtggXKizjLg ytfQQ2DX9mdCKesglhXwsi0= X-Received: by 2002:a05:6402:741:b0:42a:8fad:8f67 with SMTP id p1-20020a056402074100b0042a8fad8f67mr21895251edy.285.1652873599246; Wed, 18 May 2022 04:33:19 -0700 (PDT) Received: from skbuf ([188.25.255.186]) by smtp.gmail.com with ESMTPSA id d19-20020a1709067a1300b006f3ef214e05sm852697ejo.107.2022.05.18.04.33.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:33:18 -0700 (PDT) Date: Wed, 18 May 2022 14:33:15 +0300 From: Vladimir Oltean To: Martin Blumenstingl Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, Hauke Mehrtens Subject: Re: [PATCH net v1 2/2] net: dsa: lantiq_gswip: Fix typo in gswip_port_fdb_dump() error print Message-ID: <20220518113315.w3p6vzj3djat2abd@skbuf> References: <20220517194015.1081632-1-martin.blumenstingl@googlemail.com> <20220517194015.1081632-3-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517194015.1081632-3-martin.blumenstingl@googlemail.com> 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 On Tue, May 17, 2022 at 09:40:15PM +0200, Martin Blumenstingl wrote: > 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 > --- Reviewed-by: Vladimir Oltean > 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 >