[PATCH] squashfs: show an error message if the inode_table can't be, allocated
Tom Rini
trini at konsulko.com
Sat Jan 29 13:50:42 CET 2022
On Thu, Jan 13, 2022 at 02:28:45PM +0100, Lars Weber wrote:
> Signed-off-by: Lars Weber <weber at weber-software.com>
> ---
> fs/squashfs/sqfs.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> }
>
> diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
> index e2d91c654c..9a81e79622 100644
> --- a/fs/squashfs/sqfs.c
> +++ b/fs/squashfs/sqfs.c
> @@ -728,6 +728,11 @@ static int sqfs_read_inode_table(unsigned char
> **inode_table)
> *inode_table = malloc(metablks_count * SQFS_METADATA_BLOCK_SIZE);
> if (!*inode_table) {
> ret = -ENOMEM;
> + printf(
> + "Error: failed to allocate squashfs inode_table
> of size %i, "
> + "increasing CONFIG_SYS_MALLOC_LEN could help\n",
> + metablks_count * SQFS_METADATA_BLOCK_SIZE
> + );
> goto free_itb;
After reworking to be a single print line (that is allowed to exceed 80
chars, to make grep easier), applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220129/0681c982/attachment.sig>
More information about the U-Boot
mailing list