aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/hdpvr/hdpvr-core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/hdpvr/hdpvr-core.c b/drivers/media/video/hdpvr/hdpvr-core.c
index e280eb178fe9..51f393d03a46 100644
--- a/drivers/media/video/hdpvr/hdpvr-core.c
+++ b/drivers/media/video/hdpvr/hdpvr-core.c
@@ -145,7 +145,7 @@ static int device_authorization(struct hdpvr_device *dev)
145#ifdef HDPVR_DEBUG 145#ifdef HDPVR_DEBUG
146 else { 146 else {
147 hex_dump_to_buffer(dev->usbc_buf, 46, 16, 1, print_buf, 147 hex_dump_to_buffer(dev->usbc_buf, 46, 16, 1, print_buf,
148 sizeof(print_buf), 0); 148 5*buf_size+1, 0);
149 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, 149 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev,
150 "Status request returned, len %d: %s\n", 150 "Status request returned, len %d: %s\n",
151 ret, print_buf); 151 ret, print_buf);
@@ -168,13 +168,13 @@ static int device_authorization(struct hdpvr_device *dev)
168 168
169 response = dev->usbc_buf+38; 169 response = dev->usbc_buf+38;
170#ifdef HDPVR_DEBUG 170#ifdef HDPVR_DEBUG
171 hex_dump_to_buffer(response, 8, 16, 1, print_buf, sizeof(print_buf), 0); 171 hex_dump_to_buffer(response, 8, 16, 1, print_buf, 5*buf_size+1, 0);
172 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, "challenge: %s\n", 172 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, "challenge: %s\n",
173 print_buf); 173 print_buf);
174#endif 174#endif
175 challenge(response); 175 challenge(response);
176#ifdef HDPVR_DEBUG 176#ifdef HDPVR_DEBUG
177 hex_dump_to_buffer(response, 8, 16, 1, print_buf, sizeof(print_buf), 0); 177 hex_dump_to_buffer(response, 8, 16, 1, print_buf, 5*buf_size+1, 0);
178 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %s\n", 178 v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev, " response: %s\n",
179 print_buf); 179 print_buf);
180#endif 180#endif