[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] ios: Amend OOM message to be consistent everywhere.
From: |
Tim Rühsen |
Subject: |
[PATCH 6/6] ios: Amend OOM message to be consistent everywhere. |
Date: |
Thu, 7 May 2020 12:51:09 +0200 |
2020-05-07 Tim Rühsen <address@hidden>
* poke/pk-ios.c (pk_cmd_load_file): Amend OOM message to
be the same everywhere ("No memory" to "Out of memory").
(pk_cmd_mem): Likewise.
---
ChangeLog | 6 ++++++
poke/pk-ios.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/poke/pk-ios.c b/poke/pk-ios.c
index 1aeabd8c..54bb140f 100644
--- a/poke/pk-ios.c
+++ b/poke/pk-ios.c
@@ -229,7 +229,7 @@ pk_cmd_load_file (int argc, struct pk_cmd_arg argv[],
uint64_t uflags)
if (asprintf (&filename, "%s/%s", poke_datadir, arg) == -1)
{
/* filename is undefined now, don't free */
- pk_puts ("No memory");
+ pk_puts ("Out of memory");
return 0;
}
@@ -269,7 +269,7 @@ pk_cmd_mem (int argc, struct pk_cmd_arg argv[], uint64_t
uflags)
if (asprintf (&mem_name, "*%s*", arg_str) == -1)
{
- pk_puts (_("No memory"));
+ pk_puts (_("Out of memory"));
return 0;
}
--
2.26.2
[PATCH 4/6] poke: Add new function pk_assert_alloc, Tim Rühsen, 2020/05/07
[PATCH 5/6] poke: Remove unneeded header includes., Tim Rühsen, 2020/05/07
[PATCH 6/6] ios: Amend OOM message to be consistent everywhere.,
Tim Rühsen <=
Re: [PATCH 1/6] Check return value of pk_str_concat, Jose E. Marchesi, 2020/05/07