summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-10-13 11:19:59 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-10-13 14:40:46 +0200
commit11a084cf42e79f130e4389bac57688cfd6657fc1 (patch)
tree01b6a489bc2d6ecfbf81aa697711ff088969e2b5
parentd60794c3a3948f5ec5d4c529569ba66d9a635e55 (diff)
downloadlvm2-11a084cf42e79f130e4389bac57688cfd6657fc1.tar.gz
dmeventd: log all commands with CMD: prefix
For easier grep of all processed command - add CMD: prefix to them. Use >>> for entring command processing and <<< when command is processed.
-rw-r--r--daemons/dmeventd/dmeventd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/dmeventd/dmeventd.c b/daemons/dmeventd/dmeventd.c
index 37cf8e99b..844b2a6b7 100644
--- a/daemons/dmeventd/dmeventd.c
+++ b/daemons/dmeventd/dmeventd.c
@@ -1574,7 +1574,7 @@ static void _process_request(struct dm_event_fifos *fifos)
return;
cmd = msg.cmd;
- DEBUGLOG("%s (0x%x) processing...", decode_cmd(cmd), cmd);
+ DEBUGLOG(">>> CMD:%s (0x%x) processing...", decode_cmd(cmd), cmd);
die = (msg.cmd == DM_EVENT_CMD_DIE) ? 1 : 0;
@@ -1587,7 +1587,7 @@ static void _process_request(struct dm_event_fifos *fifos)
dm_free(msg.data);
- DEBUGLOG("%s (0x%x) completed (=%d).", decode_cmd(cmd), cmd, msg.cmd);
+ DEBUGLOG("<<< CMD:%s (0x%x) completed (=%d).", decode_cmd(cmd), cmd, msg.cmd);
if (die) {
if (unlink(DMEVENTD_PIDFILE))