USB: skeleton: Use dev_info instead of info

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:29 pm

Gitweb:     http://git.kernel.org/linus/a5f5ea230d70f5dde4d787208855fa3c3cd7b31e
Commit:     a5f5ea230d70f5dde4d787208855fa3c3cd7b31e
Parent:     0eb526b96ced3759e7d4445fc55204f314e33d8c
Author:     Matt Kraai <kraai@ftbfs.org>
AuthorDate: Fri Feb 6 19:38:51 2009 -0800
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Mar 24 16:20:30 2009 -0700

    USB: skeleton: Use dev_info instead of info
    
    338b67b0c1a97ca705023a8189cf41aa0828d294 removed the info macro and
    replaced its uses with dev_info.  This patch does so for
    usb-skeleton.c, which was missed.
    
    Signed-off-by: Matt Kraai <kraai@ftbfs.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 drivers/usb/usb-skeleton.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c
index be76084..60ba631 100644
--- a/drivers/usb/usb-skeleton.c
+++ b/drivers/usb/usb-skeleton.c
@@ -410,7 +410,9 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
 	}
 
 	/* let the user know what node this device is now attached to */
-	info("USB Skeleton device now attached to USBSkel-%d", interface->minor);
+	dev_info(&interface->dev,
+		 "USB Skeleton device now attached to USBSkel-%d",
+		 interface->minor);
 	return 0;
 
 error:
@@ -441,7 +443,7 @@ static void skel_disconnect(struct usb_interface *interface)
 	/* decrement our usage count */
 	kref_put(&dev->kref, skel_delete);
 
-	info("USB Skeleton #%d now disconnected", minor);
+	dev_info(&interface->dev, "USB Skeleton #%d now disconnected", minor);
 }
 
 static void skel_draw_down(struct usb_skel *dev)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
USB: skeleton: Use dev_info instead of info, Linux Kernel Mailing ..., (Thu Mar 26, 12:29 pm)