Commit d52a63bf authored by Bernd Porr's avatar Bernd Porr Committed by Greg Kroah-Hartman

Staging: comedi: usbduxfast: fix run-time error

If debugging is enabled, this printk will oops, fix that issue.


From: Bernd Porr <BerndPorr@f2s.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Cc: David Schleef <ds@schleef.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 97920071
...@@ -498,8 +498,7 @@ static int usbduxfastsub_upload(struct usbduxfastsub_s *udfs, ...@@ -498,8 +498,7 @@ static int usbduxfastsub_upload(struct usbduxfastsub_s *udfs,
int ret; int ret;
#ifdef CONFIG_COMEDI_DEBUG #ifdef CONFIG_COMEDI_DEBUG
printk(KERN_DEBUG "comedi%d: usbduxfast: uploading %d bytes", printk(KERN_DEBUG "comedi: usbduxfast: uploading %d bytes", len);
udfs->comedidev->minor, len);
printk(KERN_DEBUG " to addr %d, first byte=%d.\n", printk(KERN_DEBUG " to addr %d, first byte=%d.\n",
startAddr, local_transfer_buffer[0]); startAddr, local_transfer_buffer[0]);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment