Merge branch 'Branch_Gaoyang3513' of https://gaoyang3513.synology.me:3000/gaoyang3513/MilkV-Duo into Branch_Gaoyang3513
This commit is contained in:
@ -443,7 +443,7 @@ static void pstore_dump(struct kmsg_dumper *dumper,
|
||||
|
||||
oopscount++;
|
||||
while (total < kmsg_bytes) {
|
||||
char *dst;
|
||||
char *dst, *keyword;
|
||||
size_t dst_size;
|
||||
int header_size;
|
||||
int zipped_len = -1;
|
||||
@ -477,6 +477,12 @@ static void pstore_dump(struct kmsg_dumper *dumper,
|
||||
|
||||
// dump_size = kmsg_data_strip(dst + header_size, dump_size);
|
||||
|
||||
keyword = strnstr(dst + header_size, "Unable to handle kernel", dump_size);
|
||||
if (keyword) {
|
||||
dump_size -= (keyword - (dst + header_size));
|
||||
memmove(dst + header_size, keyword, dump_size);
|
||||
}
|
||||
|
||||
if (big_oops_buf) {
|
||||
zipped_len = pstore_compress(dst, psinfo->buf,
|
||||
header_size + dump_size,
|
||||
|
||||
Reference in New Issue
Block a user