public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
To: sjg@chromium.org
Cc: nd@arm.com, trini@konsulko.com, u-boot@lists.denx.de,
	xueliang.zhong@arm.com
Subject: Re: [PATCH v2 1/2] log: select physical address formatting in a generic way
Date: Fri, 20 Oct 2023 13:12:43 +0100	[thread overview]
Message-ID: <20231020121243.GA162561@e130802.arm.com> (raw)
In-Reply-To: <20230816110551.86930-1-abdellatif.elkhlifi@arm.com>

Hi Simon,

> sets the log formatting according to the platform (64-bit vs 32-bit)
> 
> Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
> Cc: Simon Glass <sjg@chromium.org>
> ---
>  cmd/armffa.c  | 8 --------
>  include/log.h | 9 +++++++++
>  2 files changed, 9 insertions(+), 8 deletions(-)
> 
> diff --git a/cmd/armffa.c b/cmd/armffa.c
> index 7e6eafc03a..ab0fd54d97 100644
> --- a/cmd/armffa.c
> +++ b/cmd/armffa.c
> @@ -13,14 +13,6 @@
>  #include <stdlib.h>
>  #include <asm/io.h>
>  
> -/* Select the right physical address formatting according to the platform */
> -#ifdef CONFIG_PHYS_64BIT
> -#define PhysAddrLength "ll"
> -#else
> -#define PhysAddrLength ""
> -#endif
> -#define PHYS_ADDR_LN "%" PhysAddrLength "x"
> -
>  /**
>   * ffa_get_dev() - Return the FF-A device
>   * @devp:	pointer to the FF-A device
> diff --git a/include/log.h b/include/log.h
> index 6e84f080ef..3f631d6816 100644
> --- a/include/log.h
> +++ b/include/log.h
> @@ -370,6 +370,15 @@ void __assert_fail(const char *assertion, const char *file, unsigned int line,
>  #define log_msg_retz(_msg, _ret) ((void)(_msg), _ret)
>  #endif
>  
> +/* Select the right physical address formatting according to the platform */
> +#ifdef CONFIG_PHYS_64BIT
> +#define PhysAddrLength "ll"
> +#else
> +#define PhysAddrLength ""
> +#endif
> +#define PHYS_ADDR_LN "%" PhysAddrLength "x"
> +#define PHYS_ADDR_LNU "%" PhysAddrLength "u"
> +
>  /** * enum log_rec_flags - Flags for a log record */
>  enum log_rec_flags {
>  	/** @LOGRECF_FORCE_DEBUG: Force output of debug record */
> -- 
> 2.25.1
> 

Any feedback about this specific commit please ?

A gentle reminder about the context: While I was working on the FF-A support,
you suggested that I move PHYS_ADDR_LN macros to a common location so it can be used
in a generic way.

Cheers,
Abdellatif

  parent reply	other threads:[~2023-10-20 12:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-13 21:46 [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems Marek Vasut
2023-08-13 21:46 ` [PATCH 2/2] configs: sandbox: test: dm: blk: Enable NVMXIP QSPI and update test Marek Vasut
2023-08-14 22:42   ` Simon Glass
2023-08-14 22:45     ` Marek Vasut
2023-08-15 16:43       ` [PATCH] nvmxip: add sandbox support Abdellatif El Khlifi
2023-08-15 18:39         ` Simon Glass
2023-08-16 11:05           ` [PATCH v2 1/2] log: select physical address formatting in a generic way Abdellatif El Khlifi
2023-08-16 11:05             ` [PATCH v2 2/2] nvmxip: add sandbox support Abdellatif El Khlifi
2023-08-16 11:18               ` Marek Vasut
2023-08-16 16:39                 ` Abdellatif El Khlifi
2023-08-16 21:47                   ` Marek Vasut
2023-08-16 11:13             ` [PATCH v2 1/2] log: select physical address formatting in a generic way Marek Vasut
2023-08-16 14:39               ` Simon Glass
2023-08-16 15:23                 ` Marek Vasut
2023-10-20 12:12             ` Abdellatif El Khlifi [this message]
2023-08-15 20:44         ` [PATCH] nvmxip: add sandbox support Marek Vasut
2023-08-15 17:08       ` [PATCH 2/2] configs: sandbox: test: dm: blk: Enable NVMXIP QSPI and update test Abdellatif El Khlifi
2023-08-13 23:55 ` [PATCH 1/2] drivers/mtd/nvmxip: Rework the read accessor to support 32bit systems Marek Vasut
2023-08-19  0:23 ` Marek Vasut
2023-08-21 11:34   ` Abdellatif El Khlifi

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=20231020121243.GA162561@e130802.arm.com \
    --to=abdellatif.elkhlifi@arm.com \
    --cc=nd@arm.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xueliang.zhong@arm.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