From: "Jaehoon Chung" <jh80.chung@samsung.com>
To: "'Simon Glass'" <sjg@chromium.org>,
"'U-Boot Mailing List'" <u-boot@lists.denx.de>
Cc: "'Peng Fan'" <peng.fan@nxp.com>,
"'Quentin Schulz'" <quentin.schulz@cherry.de>,
"'Sean Anderson'" <seanga2@gmail.com>,
"'Tim Harvey'" <tharvey@gateworks.com>,
"'Tom Rini'" <trini@konsulko.com>
Subject: RE: [PATCH v4 01/19] spl: mmc: Avoid size growth in spl_mmc_find_device() debug
Date: Mon, 23 Dec 2024 08:47:23 +0900 [thread overview]
Message-ID: <058d01db54cb$d9824890$8c86d9b0$@samsung.com> (raw)
In-Reply-To: <20241219182907.2609704-2-sjg@chromium.org>
> -----Original Message-----
> From: Simon Glass <sjg@chromium.org>
> Sent: Friday, December 20, 2024 3:29 AM
>
> The for() loop ends up being in the code even if the log_debug() does
> nothing. Add a condition to fix this.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
> ---
>
> (no changes since v3)
>
> Changes in v3:
> - Add new patch to avoid size growth in spl_mmc_find_device() debug
>
> common/spl/spl_mmc.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c
> index 1f696593216..fe4230170a0 100644
> --- a/common/spl/spl_mmc.c
> +++ b/common/spl/spl_mmc.c
> @@ -81,8 +81,10 @@ static int spl_mmc_find_device(struct mmc **mmcp, int mmc_dev)
> struct uclass *uc;
>
> log_debug("Selecting MMC dev %d; seqs:\n", mmc_dev);
> - uclass_id_foreach_dev(UCLASS_MMC, dev, uc)
> - log_debug("%d: %s\n", dev_seq(dev), dev->name);
> + if (_LOG_DEBUG) {
> + uclass_id_foreach_dev(UCLASS_MMC, dev, uc)
> + log_debug("%d: %s\n", dev_seq(dev), dev->name);
> + }
> ret = mmc_init_device(mmc_dev);
> #else
> ret = mmc_initialize(NULL);
> --
> 2.34.1
next prev parent reply other threads:[~2024-12-22 23:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 18:28 [PATCH v4 00/19] vbe: Series part E Simon Glass
2024-12-19 18:28 ` [PATCH v4 01/19] spl: mmc: Avoid size growth in spl_mmc_find_device() debug Simon Glass
2024-12-22 23:47 ` Jaehoon Chung [this message]
2024-12-19 18:28 ` [PATCH v4 02/19] image: Add a prototype for fit_image_get_phase() Simon Glass
2024-12-19 18:28 ` [PATCH v4 03/19] boot: Allow FIT to fall back from best-match option Simon Glass
2024-12-19 18:28 ` [PATCH v4 04/19] bootstd: Avoid sprintf() in SPL when creating bootdevs Simon Glass
2024-12-19 18:28 ` [PATCH v4 05/19] boot: Respect the load_op in fit_image_load() Simon Glass
2024-12-19 18:28 ` [PATCH v4 06/19] malloc: Show amount of used space when memory runs out Simon Glass
2024-12-19 18:28 ` [PATCH v4 07/19] malloc: Provide a simple malloc for VPL Simon Glass
2024-12-19 18:28 ` [PATCH v4 08/19] Support setting a maximum size for the VPL image Simon Glass
2024-12-19 18:28 ` [PATCH v4 09/19] spl: Report a loader failure Simon Glass
2024-12-19 18:28 ` [PATCH v4 10/19] spl: Allow serial to be disabled in any XPL phase Simon Glass
2024-12-19 18:28 ` [PATCH v4 11/19] spl: Support a relocated stack " Simon Glass
2024-12-19 18:29 ` [PATCH v4 12/19] spl: Drop use of uintptr_t Simon Glass
2024-12-19 18:29 ` [PATCH v4 13/19] spl: Drop a duplicate variable in boot_from_devices() Simon Glass
2024-12-19 18:29 ` [PATCH v4 14/19] spl: Add some more debugging to load_simple_fit() Simon Glass
2024-12-19 18:29 ` [PATCH v4 15/19] spl: lib: Allow for decompression in any SPL build Simon Glass
2024-12-19 18:29 ` [PATCH v4 16/19] boot: Allow use of FIT in TPL and VPL Simon Glass
2024-12-19 18:29 ` [PATCH v4 17/19] lib: Allow crc8 " Simon Glass
2024-12-19 18:29 ` [PATCH v4 18/19] boot: Imply CRC8 with VBE Simon Glass
2024-12-19 18:29 ` [PATCH v4 19/19] hash: Plumb crc8 into the hash functions Simon Glass
2024-12-28 0:51 ` [PATCH v4 00/19] vbe: Series part E Tom Rini
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='058d01db54cb$d9824890$8c86d9b0$@samsung.com' \
--to=jh80.chung@samsung.com \
--cc=peng.fan@nxp.com \
--cc=quentin.schulz@cherry.de \
--cc=seanga2@gmail.com \
--cc=sjg@chromium.org \
--cc=tharvey@gateworks.com \
--cc=trini@konsulko.com \
--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