]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pstore: use log_oom() 17669/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Nov 2020 17:50:30 +0000 (02:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 19 Nov 2020 17:59:02 +0000 (02:59 +0900)
src/pstore/pstore.c

index 05046b57ea954c780822695dc7fbe895100a0e48..db8a71fbab20f4c88b510d2a8813e7cfc5c2c134 100644 (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;
                 }