summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flashrom.c4
-rw-r--r--layout.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/flashrom.c b/flashrom.c
index 51a6b6443..fde6d5a14 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -454,7 +454,7 @@ static int check_erased_range(struct flashctx *flash, unsigned int start, unsign
const uint8_t erased_value = ERASED_VALUE(flash);
if (!cmpbuf) {
- msg_gerr("Could not allocate memory!\n");
+ msg_gerr("Out of memory!\n");
exit(1);
}
memset(cmpbuf, erased_value, len);
@@ -513,7 +513,7 @@ int verify_range(struct flashctx *flash, const uint8_t *cmpbuf, unsigned int sta
uint8_t *readbuf = malloc(len);
if (!readbuf) {
- msg_gerr("Could not allocate memory!\n");
+ msg_gerr("Out of memory!\n");
return -1;
}
diff --git a/layout.c b/layout.c
index be88428f7..2d18f83db 100644
--- a/layout.c
+++ b/layout.c
@@ -145,7 +145,7 @@ int register_include_arg(struct layout_include_args **args, const char *arg)
tmp = malloc(sizeof(*tmp));
if (tmp == NULL) {
- msg_gerr("Could not allocate memory");
+ msg_gerr("Out of memory");
goto error;
}