···895895 goto exit;896896 }897897898898- info("adutux " DRIVER_DESC " " DRIVER_VERSION);899899- info("adutux is an experimental driver. Use at your own risk");898898+ printk(KERN_INFO "adutux " DRIVER_DESC " " DRIVER_VERSION "\n");899899+ printk(KERN_INFO "adutux is an experimental driver. "900900+ "Use at your own risk\n");900901901902exit:902903 dbg(2," %s : leave, return value %d", __func__, result);
···403403 mutex_unlock(&dev->lock);404404 }405405406406- info("%s disconnected", DRIVER_DESC);406406+ dev_info(&interface->dev, "disconnected\n");407407}408408409409static int __init usb_idmouse_init(void)410410{411411 int result;412412413413- info(DRIVER_DESC " " DRIVER_VERSION);413413+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"414414+ DRIVER_DESC "\n");414415415416 /* register this driver with the USB subsystem */416417 result = usb_register(&idmouse_driver);
+13-10
drivers/usb/misc/legousbtower.c
···851851852852 dbg(2, "%s: enter", __func__);853853854854- if (udev == NULL) {855855- info ("udev is NULL.");856856- }854854+ if (udev == NULL)855855+ dev_info(&interface->dev, "udev is NULL.\n");857856858857 /* allocate memory for our device state and initialize it */859858···953954 dev->minor = interface->minor;954955955956 /* let the user know what node this device is now attached to */956956- info ("LEGO USB Tower #%d now attached to major %d minor %d", (dev->minor - LEGO_USB_TOWER_MINOR_BASE), USB_MAJOR, dev->minor);957957+ dev_info(&interface->dev, "LEGO USB Tower #%d now attached to major "958958+ "%d minor %d\n", (dev->minor - LEGO_USB_TOWER_MINOR_BASE),959959+ USB_MAJOR, dev->minor);957960958961 /* get the firmware version and log it */959962 result = usb_control_msg (udev,···972971 retval = result;973972 goto error;974973 }975975- info("LEGO USB Tower firmware version is %d.%d build %d",976976- get_version_reply.major,977977- get_version_reply.minor,978978- le16_to_cpu(get_version_reply.build_no));974974+ dev_info(&interface->dev, "LEGO USB Tower firmware version is %d.%d "975975+ "build %d\n", get_version_reply.major,976976+ get_version_reply.minor,977977+ le16_to_cpu(get_version_reply.build_no));979978980979981980exit:···10221021 mutex_unlock(&dev->lock);10231022 }1024102310251025- info("LEGO USB Tower #%d now disconnected", (minor - LEGO_USB_TOWER_MINOR_BASE));10241024+ dev_info(&interface->dev, "LEGO USB Tower #%d now disconnected\n",10251025+ (minor - LEGO_USB_TOWER_MINOR_BASE));1026102610271027 dbg(2, "%s: leave", __func__);10281028}···10481046 goto exit;10491047 }1050104810511051- info(DRIVER_DESC " " DRIVER_VERSION);10491049+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"10501050+ DRIVER_DESC "\n");1052105110531052exit:10541053 dbg(2, "%s: leave, return value %d", __func__, retval);
+6-5
drivers/usb/misc/rio500.c
···89899090 mutex_unlock(&(rio->lock));91919292- info("Rio opened.");9292+ dev_info(&rio->rio_dev->dev, "Rio opened.\n");93939494 return 0;9595}···100100101101 rio->isopen = 0;102102103103- info("Rio closed.");103103+ dev_info(&rio->rio_dev->dev, "Rio closed.\n");104104 return 0;105105}106106···451451 struct rio_usb_data *rio = &rio_instance;452452 int retval;453453454454- info("USB Rio found at address %d", dev->devnum);454454+ dev_info(&intf->dev, "USB Rio found at address %d\n", dev->devnum);455455456456 retval = usb_register_dev(intf, &usb_rio_class);457457 if (retval) {···503503 kfree(rio->ibuf);504504 kfree(rio->obuf);505505506506- info("USB Rio disconnected.");506506+ dev_info(&intf->dev, "USB Rio disconnected.\n");507507508508 rio->present = 0;509509 mutex_unlock(&(rio->lock));···531531 if (retval)532532 goto out;533533534534- info(DRIVER_VERSION ":" DRIVER_DESC);534534+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"535535+ DRIVER_DESC "\n");535536536537out:537538 return retval;
···359359360360 i = le16_to_cpu(dev->udev->descriptor.bcdDevice);361361362362- info("USBLCD Version %1d%1d.%1d%1d found at address %d",363363- (i & 0xF000)>>12,(i & 0xF00)>>8,(i & 0xF0)>>4,(i & 0xF),364364- dev->udev->devnum);362362+ dev_info(&interface->dev, "USBLCD Version %1d%1d.%1d%1d found "363363+ "at address %d\n", (i & 0xF000)>>12, (i & 0xF00)>>8,364364+ (i & 0xF0)>>4,(i & 0xF), dev->udev->devnum);365365366366 /* let the user know what node this device is now attached to */367367- info("USB LCD device now attached to USBLCD-%d", interface->minor);367367+ dev_info(&interface->dev, "USB LCD device now attached to USBLCD-%d\n",368368+ interface->minor);368369 return 0;369370370371error:···414413 /* decrement our usage count */415414 kref_put(&dev->kref, lcd_delete);416415417417- info("USB LCD #%d now disconnected", minor);416416+ dev_info(&interface->dev, "USB LCD #%d now disconnected\n", minor);418417}419418420419static struct usb_driver lcd_driver = {
+8-4
drivers/usb/misc/uss720.c
···801801 if (retval)802802 goto out;803803804804- info(DRIVER_VERSION ":" DRIVER_DESC);805805- info("NOTE: this is a special purpose driver to allow nonstandard");806806- info("protocols (eg. bitbang) over USS720 usb to parallel cables");807807- info("If you just want to connect to a printer, use usblp instead");804804+ printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":"805805+ DRIVER_DESC "\n");806806+ printk(KERN_INFO KBUILD_MODNAME ": NOTE: this is a special purpose "807807+ "driver to allow nonstandard\n");808808+ printk(KERN_INFO KBUILD_MODNAME ": protocols (eg. bitbang) over "809809+ "USS720 usb to parallel cables\n");810810+ printk(KERN_INFO KBUILD_MODNAME ": If you just want to connect to a "811811+ "printer, use usblp instead\n");808812out:809813 return retval;810814}