1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-27 23:22:37 +02:00

layout: Add new line to out of memory error message

Change-Id: I1f5134378b7967931d52ee0556e2061c9a30d27f
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/70552
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
This commit is contained in:
Anastasia Klimchuk 2022-12-10 19:38:52 +11:00 committed by Edward O'Callaghan
parent 51d9015dda
commit a509b8bec4

View File

@ -135,13 +135,13 @@ static bool parse_include_args(const char *arg, char **name, char **file)
if (colon) { if (colon) {
tmp_name = strndup(arg, colon - arg); tmp_name = strndup(arg, colon - arg);
if (!tmp_name) { if (!tmp_name) {
msg_gerr("Out of memory"); msg_gerr("Out of memory\n");
goto error; goto error;
} }
tmp_file = strdup(colon + 1); tmp_file = strdup(colon + 1);
if (!tmp_file) { if (!tmp_file) {
msg_gerr("Out of memory"); msg_gerr("Out of memory\n");
goto error; goto error;
} }
} else { } else {
@ -178,7 +178,7 @@ int register_include_arg(struct layout_include_args **args, const char *arg)
tmp = malloc(sizeof(*tmp)); tmp = malloc(sizeof(*tmp));
if (tmp == NULL) { if (tmp == NULL) {
msg_gerr("Out of memory"); msg_gerr("Out of memory\n");
goto error; goto error;
} }