pstore: use log_oom()

This commit is contained in:
Yu Watanabe 2020-11-20 02:50:30 +09:00
parent 0aa8730edc
commit 1058390d20
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ static void process_dmesg_files(PStoreList *list) {
* output either. */
size_t needed = strlen(pe->dirent.d_name) + strlen(":\n") + pe->content_size + 1;
if (!GREEDY_REALLOC(dmesg, dmesg_allocated, dmesg_size + needed)) {
log_warning_errno(ENOMEM, "Failed to write dmesg file: %m");
log_oom();
dmesg_bad = true;
continue;
}