From: Carlos Bilbao <bilbao@vt.edu>
To: davem@davemloft.net
Cc: kuba@kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, andrew@lunn.ch,
gregkh@linuxfoundation.org
Subject: [PATCH] drivers: net: Follow the indentation coding standard on printks
Date: Thu, 08 Jul 2021 11:23:41 -0400 [thread overview]
Message-ID: <1884900.usQuhbGJ8B@iron-maiden> (raw)
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.
Signed-off-by: Carlos Bilbao <bilbao@vt.edu>
---
drivers/net/ethernet/dec/tulip/de4x5.c | 2 +-
drivers/net/sb1000.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
index b125d7faefdf..155cfe8800cd 100644
--- 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);
lp->media = INIT;
break;
}
diff --git a/drivers/net/sb1000.c b/drivers/net/sb1000.c
index e88af978f63c..54a7c7613434 100644
--- 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 */
lp->rx_frames++;
@@ -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)
--
2.25.1
next reply other threads:[~2021-07-08 15:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-08 15:23 Carlos Bilbao [this message]
2021-07-08 16:40 ` [PATCH] drivers: net: Follow the indentation coding standard on printks Joe Perches
2021-07-08 17:33 ` [PATCH net-next v2] " Carlos Bilbao
2021-07-08 17:38 ` Joe Perches
2021-07-08 17:43 ` Carlos Bilbao
2021-07-08 17:48 ` [PATCH net-next v2] drivers: ethernet: tulip: Fix indentation of printk Carlos Bilbao
2021-07-08 17:59 ` Andrew Lunn
2021-07-08 17:53 ` [PATCH net-next v2] drivers: net: Remove undefined XXXDEBUG on driver sb1000 Carlos Bilbao
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1884900.usQuhbGJ8B@iron-maiden \
--to=bilbao@vt.edu \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=gregkh@linuxfoundation.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).