aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/eq.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-10 03:22:46 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-15 22:05:17 -0400
commit0a645e809759a4b9c876d3e9ca6c139784a97a38 (patch)
treed9e2e46a9207020fc840f52a869eed045e03fa97 /drivers/net/mlx4/eq.c
parent54874868585ffa5d73d7ab8a5a32ea7dcdec1441 (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/eq.c')
-rw-r--r--drivers/net/mlx4/eq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/mlx4/eq.c b/drivers/net/mlx4/eq.c
index 22d0b3b796b4..6d7b2bf210ce 100644
--- a/drivers/net/mlx4/eq.c
+++ b/drivers/net/mlx4/eq.c
@@ -475,10 +475,10 @@ static void mlx4_free_eq(struct mlx4_dev *dev,
475 mlx4_dbg(dev, "Dumping EQ context %02x:\n", eq->eqn); 475 mlx4_dbg(dev, "Dumping EQ context %02x:\n", eq->eqn);
476 for (i = 0; i < sizeof (struct mlx4_eq_context) / 4; ++i) { 476 for (i = 0; i < sizeof (struct mlx4_eq_context) / 4; ++i) {
477 if (i % 4 == 0) 477 if (i % 4 == 0)
478 printk("[%02x] ", i * 4); 478 pr_cont("[%02x] ", i * 4);
479 printk(" %08x", be32_to_cpup(mailbox->buf + i * 4)); 479 pr_cont(" %08x", be32_to_cpup(mailbox->buf + i * 4));
480 if ((i + 1) % 4 == 0) 480 if ((i + 1) % 4 == 0)
481 printk("\n"); 481 pr_cont("\n");
482 } 482 }
483 } 483 }
484 484