]> bbs.cooldavid.org Git - net-next-2.6.git/commit
drivers/net/mlx4: Use %pV, pr_<level>, printk_once
authorJoe Perches <joe@perches.com>
Sat, 10 Jul 2010 07:22:46 +0000 (07:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Jul 2010 02:05:17 +0000 (19:05 -0700)
commit0a645e809759a4b9c876d3e9ca6c139784a97a38
treed9e2e46a9207020fc840f52a869eed045e03fa97
parent54874868585ffa5d73d7ab8a5a32ea7dcdec1441
drivers/net/mlx4: Use %pV, pr_<level>, printk_once

Remove near duplication of format string constants by using the newly
introduced vsprintf extention %pV to reduce text by 20k or so.

$ size drivers/net/mlx4/built-in.o*
   text    data     bss     dec     hex filename
 161367    1866   48784  212017   33c31 drivers/net/mlx4/built-in.o
 142621    1866   46248  190735   2e90f drivers/net/mlx4/built-in.o.new

Use printk_once as appropriate.
Convert printks to pr_<level>, some bare printks now use pr_cont.
Remove now unused #define PFX.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/catas.c
drivers/net/mlx4/en_main.c
drivers/net/mlx4/eq.c
drivers/net/mlx4/main.c
drivers/net/mlx4/mlx4.h
drivers/net/mlx4/mlx4_en.h