Edward O'Callaghan submitted this change.

View Change


Approvals: build bot (Jenkins): Verified Edward O'Callaghan: Looks good to me, approved
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>
---
M layout.c
1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/layout.c b/layout.c
index 350e49e..3f2abb9 100644
--- a/layout.c
+++ b/layout.c
@@ -135,13 +135,13 @@
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 @@

tmp = malloc(sizeof(*tmp));
if (tmp == NULL) {
- msg_gerr("Out of memory");
+ msg_gerr("Out of memory\n");
goto error;
}


To view, visit change 70552. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I1f5134378b7967931d52ee0556e2061c9a30d27f
Gerrit-Change-Number: 70552
Gerrit-PatchSet: 2
Gerrit-Owner: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Felix Singer <felixsinger@posteo.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged