mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
[PATCH] switch udevd's msg_dump() to #define
Here we switch the msg_dump() to #define instead of commenting it out.
This commit is contained in:
parent
dd785ba628
commit
b6bf0b1236
12
udevd.c
12
udevd.c
@ -73,6 +73,10 @@ void log_message (int level, const char *format, ...)
|
|||||||
}
|
}
|
||||||
#endif
|
#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)
|
static void msg_dump_queue(void)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
@ -83,14 +87,6 @@ static void msg_dump_queue(void)
|
|||||||
#endif
|
#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)
|
static struct hotplug_msg *msg_create(void)
|
||||||
{
|
{
|
||||||
struct hotplug_msg *new_msg;
|
struct hotplug_msg *new_msg;
|
||||||
|
Loading…
Reference in New Issue
Block a user