summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2022-12-10 19:38:52 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2022-12-15 00:13:04 +0000
commita509b8bec478010cc348467aa74136a7dae1108c (patch)
treecc53d84c7fb0ca9691cbf6660e9c1d0289e50f4b /layout.c
parent51d9015dda5e8748e25bc5309f808b1b06494b73 (diff)
downloadflashrom-a509b8bec478010cc348467aa74136a7dae1108c.tar.gz
flashrom-a509b8bec478010cc348467aa74136a7dae1108c.tar.bz2
flashrom-a509b8bec478010cc348467aa74136a7dae1108c.zip
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>
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/layout.c b/layout.c
index 350e49eca..3f2abb9a3 100644
--- a/layout.c
+++ b/layout.c
@@ -135,13 +135,13 @@ static bool parse_include_args(const char *arg, char **name, char **file)
if (colon) {
tmp_name = strndup(arg, colon - arg);
if (!tmp_name) {
- msg_gerr("Out of memory");
+ msg_gerr("Out of memory\n");
goto error;
}
tmp_file = strdup(colon + 1);
if (!tmp_file) {
- msg_gerr("Out of memory");
+ msg_gerr("Out of memory\n");
goto error;
}
} else {
@@ -178,7 +178,7 @@ int register_include_arg(struct layout_include_args **args, const char *arg)
tmp = malloc(sizeof(*tmp));
if (tmp == NULL) {
- msg_gerr("Out of memory");
+ msg_gerr("Out of memory\n");
goto error;
}