From: Tom Rini <trini@konsulko.com>
To: Lars Weber <weber@weber-software.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH] squashfs: show an error message if the inode_table can't be, allocated
Date: Sat, 29 Jan 2022 07:50:42 -0500 [thread overview]
Message-ID: <20220129125042.GO7515@bill-the-cat> (raw)
In-Reply-To: <cbb240ec-5062-7143-7d9d-184bc12c2895@weber-software.com>
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]
On Thu, Jan 13, 2022 at 02:28:45PM +0100, Lars Weber wrote:
> Signed-off-by: Lars Weber <weber@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2022-01-29 12:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-13 13:28 [PATCH] squashfs: show an error message if the inode_table can't be, allocated Lars Weber
2022-01-29 12:50 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220129125042.GO7515@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=weber@weber-software.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox