diff options
author | Joe Perches <joe@perches.com> | 2010-07-10 03:22:46 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-15 22:05:17 -0400 |
commit | 0a645e809759a4b9c876d3e9ca6c139784a97a38 (patch) | |
tree | d9e2e46a9207020fc840f52a869eed045e03fa97 /drivers/net/mlx4/catas.c | |
parent | 54874868585ffa5d73d7ab8a5a32ea7dcdec1441 (diff) |
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>
Diffstat (limited to 'drivers/net/mlx4/catas.c')
-rw-r--r-- | drivers/net/mlx4/catas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mlx4/catas.c b/drivers/net/mlx4/catas.c index f599294fa8ab..68aaa42d0ced 100644 --- a/drivers/net/mlx4/catas.c +++ b/drivers/net/mlx4/catas.c | |||
@@ -101,8 +101,8 @@ static void catas_reset(struct work_struct *work) | |||
101 | ret = mlx4_restart_one(priv->dev.pdev); | 101 | ret = mlx4_restart_one(priv->dev.pdev); |
102 | /* 'priv' now is not valid */ | 102 | /* 'priv' now is not valid */ |
103 | if (ret) | 103 | if (ret) |
104 | printk(KERN_ERR "mlx4 %s: Reset failed (%d)\n", | 104 | pr_err("mlx4 %s: Reset failed (%d)\n", |
105 | pci_name(pdev), ret); | 105 | pci_name(pdev), ret); |
106 | else { | 106 | else { |
107 | dev = pci_get_drvdata(pdev); | 107 | dev = pci_get_drvdata(pdev); |
108 | mlx4_dbg(dev, "Reset succeeded\n"); | 108 | mlx4_dbg(dev, "Reset succeeded\n"); |