summaryrefslogtreecommitdiff
path: root/udevd.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-04-02 20:10:37 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:14 -0700
commitb6bf0b123635cb0902a95d9d6d4584edef43ed19 (patch)
tree6feb11a2c6dffe7201851ebb952d7af185c2f121 /udevd.c
parentdd785ba628d89ae2f67f2fac0f36d0d2393f4109 (diff)
[PATCH] switch udevd's msg_dump() to #define
Here we switch the msg_dump() to #define instead of commenting it out.
Diffstat (limited to 'udevd.c')
-rw-r--r--udevd.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/udevd.c b/udevd.c
index 1bbb0a98e7..b2cb62f386 100644
--- a/udevd.c
+++ b/udevd.c
@@ -73,6 +73,10 @@ void log_message (int level, const char *format, ...)
}
#endif
+#define msg_dump(msg) \
+ dbg("msg_dump: sequence %d, '%s', '%s', '%s'", \
+ msg->seqnum, msg->action, msg->devpath, msg->subsystem);
+
static void msg_dump_queue(void)
{
#ifdef DEBUG
@@ -83,14 +87,6 @@ static void msg_dump_queue(void)
#endif
}
-#if 0
-static void msg_dump(struct hotplug_msg *msg)
-{
- dbg("sequence %d, '%s', '%s', '%s'",
- msg->seqnum, msg->action, msg->devpath, msg->subsystem);
-}
-#endif
-
static struct hotplug_msg *msg_create(void)
{
struct hotplug_msg *new_msg;