From: Greg KH <greg@kroah.com>
To: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB and driver core changes for 2.5.41
Date: Tue, 8 Oct 2002 16:19:03 -0700 [thread overview]
Message-ID: <20021008231903.GF11337@kroah.com> (raw)
In-Reply-To: <20021008231832.GE11337@kroah.com>
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.573.92.16 -> 1.573.92.17
# include/linux/device.h 1.39 -> 1.40
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/10/08 dsteklof@us.ibm.com 1.573.92.17
# driver core: add generic logging macros for devices.
# --------------------------------------------
#
diff -Nru a/include/linux/device.h b/include/linux/device.h
--- a/include/linux/device.h Tue Oct 8 15:53:41 2002
+++ b/include/linux/device.h Tue Oct 8 15:53:41 2002
@@ -421,4 +421,23 @@
extern void device_resume(u32 level);
extern void device_shutdown(void);
+/* debugging and troubleshooting/diagnostic helpers. */
+#ifdef DEBUG
+#define dev_dbg(dev, format, arg...) \
+ printk (KERN_DEBUG "%s %s: " format , \
+ dev.driver->name , dev.bus_id , ## arg)
+#else
+#define dev_dbg(dev, format, arg...) do {} while (0)
+#endif
+
+#define dev_err(dev, format, arg...) \
+ printk (KERN_ERR "%s %s: " format , \
+ dev.driver->name , dev.bus_id , ## arg)
+#define dev_info(dev, format, arg...) \
+ printk (KERN_INFO "%s %s: " format , \
+ dev.driver->name , dev.bus_id , ## arg)
+#define dev_warn(dev, format, arg...) \
+ printk (KERN_WARN "%s %s: " format , \
+ dev.driver->name , dev.bus_id , ## arg)
+
#endif /* _DEVICE_H_ */
next prev parent reply other threads:[~2002-10-08 23:18 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-08 23:15 [BK PATCH] USB and driver core changes for 2.5.41 Greg KH
2002-10-08 23:15 ` [PATCH] " Greg KH
2002-10-08 23:16 ` Greg KH
2002-10-08 23:17 ` Greg KH
2002-10-08 23:18 ` Greg KH
2002-10-08 23:19 ` Greg KH [this message]
2002-10-08 23:19 ` Greg KH
2002-10-08 23:20 ` Greg KH
2002-10-08 23:21 ` Greg KH
2002-10-10 11:54 ` Adrian Bunk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021008231903.GF11337@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).