diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-20 02:50:30 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-11-20 02:59:02 +0900 |
commit | 1058390d205ba40a03bc6fc40c9700ffb76bff5d (patch) | |
tree | dff9b31c0d0276c6334399d3c881a9fa31c2f533 /src/pstore | |
parent | 0aa8730edc434acb0b05a93eb4fce6337a0047ee (diff) | |
download | systemd-1058390d205ba40a03bc6fc40c9700ffb76bff5d.tar.gz |
pstore: use log_oom()
Diffstat (limited to 'src/pstore')
-rw-r--r-- | src/pstore/pstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pstore/pstore.c b/src/pstore/pstore.c index 05046b57ea..db8a71fbab 100644 --- a/src/pstore/pstore.c +++ b/src/pstore/pstore.c @@ -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; } |