diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-04-10 11:40:42 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-04-10 09:54:33 +0000 |
| commit | f532fe426046975c460a0b19625dc730100fbd0e (patch) | |
| tree | b7978b7e26f286e0b0b5932df355b188b995fe95 | |
| parent | 7d74efd0c7990eea8684b6150a007071b23631dd (diff) | |
pkg/report: make "mand mount option" regexps more robust
In some cases, we may only collect a part of the kernel output. There
are no other "mand mount option" warnings in the kernel, so let's match
by a shorter regexp.
| -rw-r--r-- | pkg/report/linux.go | 2 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/712 | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 43f55d918..ad3557a0e 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1874,7 +1874,7 @@ var linuxOopses = append([]*oops{ []*regexp.Regexp{ compile("WARNING: /etc/ssh/moduli does not exist, using fixed modulus"), // printed by sshd compile("WARNING: workqueue cpumask: online intersect > possible intersect"), - compile("WARNING: [Tt]he mand mount option (is being|has been) deprecated"), + compile("WARNING: [Tt]he mand mount option"), compile("WARNING: Unsupported flag value\\(s\\) of 0x%x in DT_FLAGS_1"), // printed when glibc is dumped compile("WARNING: Unprivileged eBPF is enabled with eIBRS"), compile(`WARNING: fbcon: Driver '(.*)' missed to adjust virtual screen size (\((?:\d+)x(?:\d+) vs\. (?:\d+)x(?:\d+)\))`), diff --git a/pkg/report/testdata/linux/report/712 b/pkg/report/testdata/linux/report/712 new file mode 100644 index 000000000..be0955abe --- /dev/null +++ b/pkg/report/testdata/linux/report/712 @@ -0,0 +1,4 @@ +TITLE: + +[ 33.603917][ T3329] ====================================================== +[ 33.603917][ T3329] WARNING: the mand mount option is being deprecat
\ No newline at end of file |
