Skip to content

Commit

Permalink
drivers/net/qlge: Use pr_<level>, shrink text a bit
Browse files Browse the repository at this point in the history
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

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Jul 21, 2010
1 parent f25c80a commit 2037d5a
Show file tree
Hide file tree
Showing 2 changed files with 318 additions and 491 deletions.
2 changes: 0 additions & 2 deletions drivers/net/qlge/qlge.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit 2037d5a

Please sign in to comment.