summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2014-05-22 23:05:34 +0000
committerGabor X Toth <*@tg-x.net>2014-05-22 23:05:34 +0000
commite045bcb4a98fac100c5cbdbc7a97b6a98aa4039e (patch)
tree9d8e2f6bef2e7f744de5b902b44e714c7a8f3a14 /contrib
parenta7100389deab562e67d22ff68961b68a62341aec (diff)
logread-ipc colouring
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/logread.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/logread.pl b/contrib/logread.pl
index 14332352e..773a5ff93 100755
--- a/contrib/logread.pl
+++ b/contrib/logread.pl
@@ -102,6 +102,9 @@ while (<>)
$1 . BRIGHT_CYAN (exists $msgtypes{$2} ? $msgtypes{$2} : 'UNKNOWN') .
CYAN " ($2)"/gei;
+ # logread-ipc output
+ s/(\s+)([A-Z_]+)( \(\d+\))$/$1 . BRIGHT_CYAN $2 . CYAN $3/e;
+
print;
}