File s390-tools-sles11sp2-zfcpdbf-fix-disply-messages-problem.patch of Package s390-tools
Description: zfcpdbf: Include and exclude messages display problem.
Symptom: zfcpdbf doesn't work for -i & -x options for KERNEL and MULTIPATH.
Problem: zfcpdbf displaying for --exclude command line option with area
KERNEL & MULTIPATH messages, and does not displaying --include
command line option with area KERNEL & MULTIPATH messages.
Solution: zfcpdbf /var/log/messages reading function call has modified with
regex to work as per documentation.
Problem-ID: 75930
---
scripts/zfcpdbf | 2 ++
1 file changed, 2 insertions(+)
--- a/scripts/zfcpdbf
+++ b/scripts/zfcpdbf
@@ -249,6 +249,8 @@ sub get_log_messages
next if ($line !~ /kernel|multipath/);
my ($ts, @rec) = sep_msg_ts($line);
next if (!$ts || $rec[0] !~ /kernel|multipath/);
+ chop($rec[0]) if ($rec[0] eq 'multipathd:');
+ chop($rec[0]);
splice(@rec, 0, 1, uc $rec[0]);
splice(@rec, 1, $#rec, join(' ', @rec[1 .. $#rec]));