From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7
Date: Sat, 14 May 2016 22:23:38 +0200 [thread overview]
Message-ID: <5737894A.8080806@denx.de> (raw)
In-Reply-To: <1463256198-3829-8-git-send-email-sjg@chromium.org>
On 05/14/2016 10:02 PM, Simon Glass wrote:
> Move these to debug() like the one in check_cache range(), to save SPL space.
This hides cache problems, which were visibly reported so far.
I am opposed to this patch.
Wouldn't it make more sense to completely disable printf() and co.
in SPL if you're after saving space?
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> arch/arm/cpu/armv7/cache_v7.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/cpu/armv7/cache_v7.c b/arch/arm/cpu/armv7/cache_v7.c
> index dc309da..68cf62e 100644
> --- a/arch/arm/cpu/armv7/cache_v7.c
> +++ b/arch/arm/cpu/armv7/cache_v7.c
> @@ -66,8 +66,8 @@ static void v7_dcache_inval_range(u32 start, u32 stop, u32 line_len)
> * invalidate the first cache-line
> */
> if (start & (line_len - 1)) {
> - printf("ERROR: %s - start address is not aligned - 0x%08x\n",
> - __func__, start);
> + debug("ERROR: %s - start address is not aligned - 0x%08x\n",
> + __func__, start);
> /* move to next cache line */
> start = (start + line_len - 1) & ~(line_len - 1);
> }
> @@ -77,8 +77,8 @@ static void v7_dcache_inval_range(u32 start, u32 stop, u32 line_len)
> * invalidate the last cache-line
> */
> if (stop & (line_len - 1)) {
> - printf("ERROR: %s - stop address is not aligned - 0x%08x\n",
> - __func__, stop);
> + debug("ERROR: %s - stop address is not aligned - 0x%08x\n",
> + __func__, stop);
> /* align to the beginning of this cache line */
> stop &= ~(line_len - 1);
> }
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-05-14 20:23 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-14 20:02 [U-Boot] [PATCH 00/20] dm: rockchip: Move rockchip boards to to use CONFIG_BLK Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 01/20] tiny-printf: Tidy up a few nits Simon Glass
2016-05-16 9:29 ` Stefan Roese
2016-05-27 16:24 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 02/20] tiny-printf: Support snprintf() Simon Glass
2016-05-16 9:31 ` Stefan Roese
2016-05-27 16:24 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 03/20] reset: Drop the reset failure message Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 04/20] mmc: Drop mmc_register() Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 05/20] mmc: Drop dead mmc code for non-generic MMC Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 06/20] mmc: Use byte array for multipliers Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 07/20] arm: Avoid error messages in cache_v7 Simon Glass
2016-05-14 20:23 ` Marek Vasut [this message]
2016-05-14 21:22 ` Simon Glass
2016-05-14 21:41 ` Marek Vasut
2016-05-19 4:02 ` Simon Glass
2016-05-19 15:22 ` Marek Vasut
2016-06-29 3:27 ` Simon Glass
2016-05-14 20:02 ` [U-Boot] [PATCH 08/20] rockchip: Check image name for the rksd image Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 09/20] rockchip: Drop unnecessary SPL properties Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 10/20] rockchip: video: Flush the cache when the display is updated Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 11/20] rockchip: Drop SPL GPIO support for rk3288 Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 12/20] dm: env: mmc: Convert env_mmc to support CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 13/20] dm: mmc: Convert sdhci " Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 14/20] dm: efi: Update for CONFIG_BLK Simon Glass
2016-05-15 8:21 ` Alexander Graf
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 15/20] dm: mmc: spl: Add support " Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 16/20] dm: mmc: dwmmc: Support CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 17/20] dm: rockchip: mmc: Allow use of CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 18/20] dm: mmc: Fix up mmc_bread/bwrite() prototypes for SPL Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 19/20] dm: mmc: Use cfg directly in mmc_bind() Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-14 20:03 ` [U-Boot] [PATCH 20/20] dm: rockchip: Enable CONFIG_BLK Simon Glass
2016-05-27 16:25 ` Simon Glass
2016-05-25 2:34 ` [U-Boot] [PATCH 00/20] dm: rockchip: Move rockchip boards to to use CONFIG_BLK Simon Glass
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=5737894A.8080806@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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