summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rwxr-xr-xusr.sbin/crashinfo/crashinfo.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/crashinfo/crashinfo.sh b/usr.sbin/crashinfo/crashinfo.sh
index 89013a2..b1bfc06 100755
--- a/usr.sbin/crashinfo/crashinfo.sh
+++ b/usr.sbin/crashinfo/crashinfo.sh
@@ -45,10 +45,11 @@ find_kernel()
nextline=1
next
}
- // {
- if (nextline) {
- print
+ nextline==1 {
+ if ($0 ~ "^ [A-Za-z ]+: ") {
nextline=0
+ } else {
+ print
}
}' $INFO)
OpenPOWER on IntegriCloud