All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes
@ 2012-10-10 14:41 Andrei Emeltchenko
  2012-10-10 15:28 ` Marcel Holtmann
  2012-10-11  6:22 ` Gustavo Padovan
  0 siblings, 2 replies; 3+ messages in thread
From: Andrei Emeltchenko @ 2012-10-10 14:41 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: bzhao

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

Use standard print specifier and remove print_hex_dump_bytes call.
Makes output more sensible:

...
[18809.401218] 00000000: 0b 00 00 fe 5b fc 01 f2 00 00 00    ....[......
...

would be changed to

...
[18809.401218] Bluetooth: hex: 0b 00 00 fe 5b fc 01 f2 00 00 00
...

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
 drivers/bluetooth/btmrvl_sdio.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index 90b3a75..49494ae 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -597,8 +597,7 @@ static int btmrvl_sdio_card_to_host(struct btmrvl_private *priv)
 
 	default:
 		BT_ERR("Unknown packet type:%d", type);
-		print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, payload,
-				     blksz * num_blocks);
+		BT_ERR("hex: %*ph", blksz * num_blocks, payload);
 
 		kfree_skb(skb);
 		skb = NULL;
@@ -857,8 +856,7 @@ static int btmrvl_sdio_host_to_card(struct btmrvl_private *priv,
 		if (ret < 0) {
 			i++;
 			BT_ERR("i=%d writesb failed: %d", i, ret);
-			print_hex_dump_bytes("", DUMP_PREFIX_OFFSET,
-						payload, nb);
+			BT_ERR("hex: %*ph", nb, payload);
 			ret = -EIO;
 			if (i > MAX_WRITE_IOMEM_RETRY)
 				goto exit;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes
  2012-10-10 14:41 [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes Andrei Emeltchenko
@ 2012-10-10 15:28 ` Marcel Holtmann
  2012-10-11  6:22 ` Gustavo Padovan
  1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2012-10-10 15:28 UTC (permalink / raw)
  To: Andrei Emeltchenko; +Cc: linux-bluetooth, bzhao

Hi Andrei,

> Use standard print specifier and remove print_hex_dump_bytes call.
> Makes output more sensible:
> 
> ...
> [18809.401218] 00000000: 0b 00 00 fe 5b fc 01 f2 00 00 00    ....[......
> ...
> 
> would be changed to
> 
> ...
> [18809.401218] Bluetooth: hex: 0b 00 00 fe 5b fc 01 f2 00 00 00
> ...
> 
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
>  drivers/bluetooth/btmrvl_sdio.c |    6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Acked-by: Marcel Holtmann <marcel@holtmann.org>

Regards

Marcel



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes
  2012-10-10 14:41 [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes Andrei Emeltchenko
  2012-10-10 15:28 ` Marcel Holtmann
@ 2012-10-11  6:22 ` Gustavo Padovan
  1 sibling, 0 replies; 3+ messages in thread
From: Gustavo Padovan @ 2012-10-11  6:22 UTC (permalink / raw)
  To: Andrei Emeltchenko; +Cc: linux-bluetooth, bzhao

Hi Andrei,

* Andrei Emeltchenko <Andrei.Emeltchenko.news@gmail.com> [2012-10-10 17:41:33 +0300]:

> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> Use standard print specifier and remove print_hex_dump_bytes call.
> Makes output more sensible:
> 
> ...
> [18809.401218] 00000000: 0b 00 00 fe 5b fc 01 f2 00 00 00    ....[......
> ...
> 
> would be changed to
> 
> ...
> [18809.401218] Bluetooth: hex: 0b 00 00 fe 5b fc 01 f2 00 00 00
> ...
> 
> Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> ---
>  drivers/bluetooth/btmrvl_sdio.c |    6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)

Patch has been applied to bluetooth-next. Thanks.

	Gustavo

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-10-11  6:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10 14:41 [PATCH] Bluetooth: btmrv: Use %*ph specifier instead of print_hex_dump_bytes Andrei Emeltchenko
2012-10-10 15:28 ` Marcel Holtmann
2012-10-11  6:22 ` Gustavo Padovan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.