* [PATCH] hid: holtekff: use %*ph to dump small buffers
@ 2012-09-05 12:00 Andy Shevchenko
2012-09-10 21:01 ` Jiri Kosina
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2012-09-05 12:00 UTC (permalink / raw)
To: Jiri Kosina, linux-input; +Cc: Andy Shevchenko
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/hid/hid-holtekff.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/hid/hid-holtekff.c b/drivers/hid/hid-holtekff.c
index 4e75421..ff295e6 100644
--- a/drivers/hid/hid-holtekff.c
+++ b/drivers/hid/hid-holtekff.c
@@ -100,8 +100,7 @@ static void holtekff_send(struct holtekff_device *holtekff,
holtekff->field->value[i] = data[i];
}
- dbg_hid("sending %02x %02x %02x %02x %02x %02x %02x\n", data[0],
- data[1], data[2], data[3], data[4], data[5], data[6]);
+ dbg_hid("sending %*ph\n", 7, data);
usbhid_submit_report(hid, holtekff->field->report, USB_DIR_OUT);
}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hid: holtekff: use %*ph to dump small buffers
2012-09-05 12:00 [PATCH] hid: holtekff: use %*ph to dump small buffers Andy Shevchenko
@ 2012-09-10 21:01 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2012-09-10 21:01 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-input
On Wed, 5 Sep 2012, Andy Shevchenko wrote:
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/hid/hid-holtekff.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/hid/hid-holtekff.c b/drivers/hid/hid-holtekff.c
> index 4e75421..ff295e6 100644
> --- a/drivers/hid/hid-holtekff.c
> +++ b/drivers/hid/hid-holtekff.c
> @@ -100,8 +100,7 @@ static void holtekff_send(struct holtekff_device *holtekff,
> holtekff->field->value[i] = data[i];
> }
>
> - dbg_hid("sending %02x %02x %02x %02x %02x %02x %02x\n", data[0],
> - data[1], data[2], data[3], data[4], data[5], data[6]);
> + dbg_hid("sending %*ph\n", 7, data);
>
> usbhid_submit_report(hid, holtekff->field->report, USB_DIR_OUT);
> }
Applied.
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-10 21:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-05 12:00 [PATCH] hid: holtekff: use %*ph to dump small buffers Andy Shevchenko
2012-09-10 21:01 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).