Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1537613
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC] Cleaning oopses |
| Date | 2016-12-07 10:00 +0100 |
| Message-ID | <sLGf0-6eS-21@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Hi guys,
should we add a simple script like below to scripts/ or so to use for
cleaning up oopses before adding to commit messages?
Instead of doing all the work by hand and so on. It doesn't remove
registers, stack and Code: lines yet but having it in the repo could be
used to state exactly which pieces of the oops should go into a commit
message and which not.
We could even do editing on the oops itself for more readability and so
on...
Thoughts?
---
#!/bin/sh
sed --regexp-extended \
-e 's/\[\s+[0-9]+\.[0-9]+\]//' \
-e 's/\+[0-9x]+.*$//' \
-e 's/\[<.*>\]//' \
< "${1:-/dev/stdin}"
--
Regards/Gruss,
Boris.
Good mailing practices for 400: avoid top-posting and trim the reply.
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC] Cleaning oopses Borislav Petkov <bp@alien8.de> - 2016-12-07 10:00 +0100
csiph-web