Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp607412pxv; Thu, 8 Jul 2021 09:44:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxy3Cg0nqS2+8cwESQFxZ/svd4PYmXrMrGwohRyEkZVhZxTig1hAYFjkLPNU6HRzfTqL+YM X-Received: by 2002:a17:907:d87:: with SMTP id go7mr16495851ejc.280.1625762672023; Thu, 08 Jul 2021 09:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625762672; cv=none; d=google.com; s=arc-20160816; b=QqTGCcMnT6YPUYY2pvDMRgZ71oYbfXoKtMVcGwNA9VMhdIGkCEYG921lHlSVuN1Qoq otj3oeT5Sg4XNHgpI7iKiJGM9n9BWy5VrLqOqkipNqTXGEyihr+2h3Do31367GUxntmR UGQmJJDOo3Omvj+wISijpjESXf2debhkYLdXQH/0XnyIKB/W1bxxbU+FIFXPjmC04DQA Y919X3qsFCCH/iZ8qAUydWxQV87HevftGVzZ1sJRyNPadzJy7pszQcxHkK3KszPklTv9 4Ou8/3xhhagjWsDp+YgJ7Ll5Pf+kolooPh1/fACDBivRnfB2LGA/EovquyOsnDQskhoD PN2Q== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=R+gaN7TnKJdg82Kiu4jnw3LdP7FMcXsHdlwqyna8CrE=; b=s5kMVAf6BNws2WiVFWwwM06ig4p8srsM4Czx8ydnakcBxGoms1pSVJFqJe8K89dgS9 s8Mn2gBkHrcHFRH8FrTjgKqtOvbTr2dw6SdO6sKi749dJfhj3Rzv/SDV+mLVlUwT/NDs qSahlDStrBmej91JwzxDImkxCFXCmRH75I7sg+x6yBTNJ+v7hCsCVmba38I7e6UDyK3f 554ciFQwofPGzG1ok31/9s/uIYyb2aUfnyyvuBHcTbpZsZyneUyzqsC+XmM4lEKEE/oN WHPHt3GqfqKvBg0JlHP/iBK3zylEbfrOVqVt0erNjIJrP+uGlPVZW0CccNEey6qix0H9 IUyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c11si3887972edy.320.2021.07.08.09.44.09; Thu, 08 Jul 2021 09:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbhGHQnm (ORCPT + 99 others); Thu, 8 Jul 2021 12:43:42 -0400 Received: from smtprelay0147.hostedemail.com ([216.40.44.147]:42084 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229468AbhGHQnl (ORCPT ); Thu, 8 Jul 2021 12:43:41 -0400 Received: from omf10.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id EBABF1836B094; Thu, 8 Jul 2021 16:40:58 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA id 6FE7F2351FD; Thu, 8 Jul 2021 16:40:57 +0000 (UTC) Message-ID: <03ad1f2319a608bbfe3fc09e901742455bf733a0.camel@perches.com> Subject: Re: [PATCH] drivers: net: Follow the indentation coding standard on printks From: Joe Perches To: Carlos Bilbao , davem@davemloft.net Cc: kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, gregkh@linuxfoundation.org Date: Thu, 08 Jul 2021 09:40:56 -0700 In-Reply-To: <1884900.usQuhbGJ8B@iron-maiden> References: <1884900.usQuhbGJ8B@iron-maiden> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.0-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.65 X-Rspamd-Server: rspamout04 X-Rspamd-Queue-Id: 6FE7F2351FD X-Stat-Signature: zngdy91cw3wz7ddhw6eyttrgy9u5sk6y X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19zv2tXbW5OqGgP2K6PyS/bo0LdRO0KyrM= X-HE-Tag: 1625762457-507807 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-07-08 at 11:23 -0400, Carlos Bilbao wrote: > Fix indentation of printks that start at the beginning of the line. Change this > for the right number of space characters, or tabs if the file uses them. The tulip and sb1000 code are from the 1990's. Likely this doesn't need touching, but if you really want to: > diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c [] > @@ -3169,7 +3169,7 @@ dc2114x_autoconf(struct net_device *dev) > ? > > ?????default: > ? lp->tcount++; > -printk("Huh?: media:%02x\n", lp->media); > + printk("Huh?: media:%02x\n", lp->media); There should be a KERN_ here like KERN_WARNING/KERN_NOTICE > diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c [] > @@ -760,7 +760,7 @@ sb1000_rx(struct net_device *dev) > ? > > ? insw(ioaddr, (unsigned short*) st, 1); > ?#ifdef XXXDEBUG > -printk("cm0: received: %02x %02x\n", st[0], st[1]); > + printk("cm0: received: %02x %02x\n", st[0], st[1]); > ?#endif /* XXXDEBUG */ XXXDEBUG isn't defined anywhere so these could just be deleted. > @@ -805,7 +805,7 @@ printk("cm0: received: %02x %02x\n", st[0], st[1]); > ? /* get data length */ > ? insw(ioaddr, buffer, NewDatagramHeaderSize / 2); > ?#ifdef XXXDEBUG > -printk("cm0: IP identification: %02x%02x fragment offset: %02x%02x\n", buffer[30], buffer[31], buffer[32], buffer[33]); > + printk("cm0: IP identification: %02x%02x fragment offset: %02x%02x\n", buffer[30], buffer[31], buffer[32], buffer[33]); > ?#endif /* XXXDEBUG */ > ? if (buffer[0] != NewDatagramHeaderSkip) { > ? if (sb1000_debug > 1)