use "Out of memory." consistantly (or with "\n")
glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id
This commit is contained in:
committed by
Kay Sievers
parent
22cfbae09d
commit
669241a076
@@ -303,7 +303,7 @@ static int parse_proc_cmdline(void) {
|
||||
|
||||
t = strv_append(arg_proc_cmdline_disks, word + 10);
|
||||
if (!t) {
|
||||
log_error("Out of memory");
|
||||
log_error("Out of memory.");
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
@@ -317,7 +317,7 @@ static int parse_proc_cmdline(void) {
|
||||
|
||||
t = strv_append(arg_proc_cmdline_disks, word + 13);
|
||||
if (!t) {
|
||||
log_error("Out of memory");
|
||||
log_error("Out of memory.");
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
@@ -380,7 +380,7 @@ int main(int argc, char *argv[]) {
|
||||
device = strappend("UUID=", *i);
|
||||
|
||||
if (!name || !device) {
|
||||
log_error("Out of memory");
|
||||
log_error("Out of memory.");
|
||||
r = EXIT_FAILURE;
|
||||
free(name);
|
||||
free(device);
|
||||
|
||||
Reference in New Issue
Block a user