Skip to contentSkip to conversation

drivers/net/qlge: Use pr_<level>, shrink text a bit

PATCH Applied Joe Perches 2 participants 4 messages Jul 19, 2010 – Jul 21, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net/qlge: Use pr_<level>, shrink text a bit

Add and use a few neatening macros
Remove PFX
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Convert printk(KERN_ERR to pr_err(

$ size drivers/net/qlge/built-in.o.*
  text	   data	    bss	    dec	    hex	filename
 116456	   2312	  25712	 144480	  23460	drivers/net/qlge/built-in.o.old
 114909	   2312	  25728	 142949	  22e65	drivers/net/qlge/built-in.o.new
---
 drivers/net/qlge/qlge.h     |    2 -
 drivers/net/qlge/qlge_dbg.c |  809 +++++++++++++++++--------------------------
 2 files changed, 320 insertions(+), 491 deletions(-)
drivers/net/qlge/qlge.h +0 -2
index 06b2188..a478786 100644
@@ -18,8 +18,6 @@
 #define DRV_STRING 	"QLogic 10 Gigabit PCI-E Ethernet Driver "
 #define DRV_VERSION	"v1.00.00.25.00.00-01"
 
-#define PFX "qlge: "
-
 #define WQ_ADDR_ALIGN	0x3	/* 4 byte alignment */
 
 #define QLGE_VENDOR_ID    0x1077
drivers/net/qlge/qlge_dbg.c +320 -489

1,132 lines not on this page · raw message

maintainer Applied
#1 lore raw

From: Joe Perches <[email protected]>
Date: Mon, 19 Jul 2010 14:49:08 -0700

Quoted 11 lines

Add and use a few neatening macros
Remove PFX
Add #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Convert printk(KERN_ERR to pr_err(

$ size drivers/net/qlge/built-in.o.*
  text	   data	    bss	    dec	    hex	filename
 116456	   2312	  25712	 144480	  23460	drivers/net/qlge/built-in.o.old
 114909	   2312	  25728	 142949	  22e65	drivers/net/qlge/built-in.o.new

Applied, thanks Joe.

#2 lore raw

PATCH 1/1 drivers/net/qlge: Remove duplicated initial DUMP_ macro entries

There are a couple of errors in the previous patch. Two of the first DUMP_<foo> entries are duplicated. Sorry, bad use of emacs macros...

---
 drivers/net/qlge/qlge_dbg.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/net/qlge/qlge_dbg.c +0 -2
index 9d9498b..4747492 100644
@@ -1465,7 +1465,6 @@ void ql_dump_regs(struct ql_adapter *qdev)
 {
 	pr_err("reg dump for function #%d\n", qdev->func);
 	DUMP_REG(qdev, SYS);
-	DUMP_REG(qdev, SYS);
 	DUMP_REG(qdev, RST_FO);
 	DUMP_REG(qdev, FSC);
 	DUMP_REG(qdev, CSR);
@@ -1535,7 +1534,6 @@ void ql_dump_stat(struct ql_adapter *qdev)
 {
 	pr_err("%s: Enter\n", __func__);
 	DUMP_STAT(qdev, tx_pkts);
-	DUMP_STAT(qdev, tx_pkts);
 	DUMP_STAT(qdev, tx_bytes);
 	DUMP_STAT(qdev, tx_mcast_pkts);
 	DUMP_STAT(qdev, tx_bcast_pkts);
maintainer
#3 lore raw

Re: [PATCH net-next] drivers/net/qlge: Remove duplicated initial DUMP_ macro entries

From: Joe Perches <[email protected]>
Date: Wed, 21 Jul 2010 14:19:01 -0700

Quoted 5 lines

There are a couple of errors in the previous patch. Two of the first DUMP_<foo> entries are duplicated. Sorry, bad use of emacs macros...

Since I didn't push your original change out yet, I'll just add this to the original commit.

Thanks!