Staging: comedi: usbduxfast: fix run-time error
authorBernd Porr <BerndPorr@f2s.com>
Wed, 11 Mar 2009 21:17:37 +0000 (14:17 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Apr 2009 21:53:52 +0000 (14:53 -0700)
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: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/usbduxfast.c

index b1a7cbe..2c888d1 100644 (file)
@@ -498,8 +498,7 @@ static int usbduxfastsub_upload(struct usbduxfastsub_s *udfs,
        int ret;
 
 #ifdef CONFIG_COMEDI_DEBUG
-       printk(KERN_DEBUG "comedi%d: usbduxfast: uploading %d bytes",
-               udfs->comedidev->minor, len);
+       printk(KERN_DEBUG "comedi: usbduxfast: uploading %d bytes", len);
        printk(KERN_DEBUG " to addr %d, first byte=%d.\n",
                startAddr, local_transfer_buffer[0]);
 #endif