chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
shutdown: allow to specify broadcast message when cancelling shutdown
[elogind.git]
/
src
/
cryptsetup
/
cryptsetup-generator.c
diff --git
a/src/cryptsetup/cryptsetup-generator.c
b/src/cryptsetup/cryptsetup-generator.c
index d0984242c803c53b52670014c5ae04799a6b7862..c6bc65aecfa73dd6a8aa9335fbd0a51e299eaf89 100644
(file)
--- a/
src/cryptsetup/cryptsetup-generator.c
+++ b/
src/cryptsetup/cryptsetup-generator.c
@@
-303,8
+303,7
@@
static int parse_proc_cmdline(void) {
t = strv_append(arg_proc_cmdline_disks, word + 10);
if (!t) {
t = strv_append(arg_proc_cmdline_disks, word + 10);
if (!t) {
- log_error("Out of memory");
- r = -ENOMEM;
+ r = log_oom();
goto finish;
}
strv_free(arg_proc_cmdline_disks);
goto finish;
}
strv_free(arg_proc_cmdline_disks);
@@
-317,8
+316,7
@@
static int parse_proc_cmdline(void) {
t = strv_append(arg_proc_cmdline_disks, word + 13);
if (!t) {
t = strv_append(arg_proc_cmdline_disks, word + 13);
if (!t) {
- log_error("Out of memory");
- r = -ENOMEM;
+ r = log_oom();
goto finish;
}
strv_free(arg_proc_cmdline_disks);
goto finish;
}
strv_free(arg_proc_cmdline_disks);
@@
-380,7
+378,7
@@
int main(int argc, char *argv[]) {
device = strappend("UUID=", *i);
if (!name || !device) {
device = strappend("UUID=", *i);
if (!name || !device) {
- log_
error("Out of memory"
);
+ log_
oom(
);
r = EXIT_FAILURE;
free(name);
free(device);
r = EXIT_FAILURE;
free(name);
free(device);