mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
pstore: use log_oom()
This commit is contained in:
parent
0aa8730edc
commit
1058390d20
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user