[PATCH] hw/arm/nseries: Display hexadecimal value with '0x' prefix

Philippe Mathieu-Daudé posted 1 patch 2 years, 9 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20210726150953.1218690-1-f4bug@amsat.org
hw/arm/nseries.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] hw/arm/nseries: Display hexadecimal value with '0x' prefix
Posted by Philippe Mathieu-Daudé 2 years, 9 months ago
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 hw/arm/nseries.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
index 906c915df78..af3164c5519 100644
--- a/hw/arm/nseries.c
+++ b/hw/arm/nseries.c
@@ -692,7 +692,7 @@ static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len)
     default:
     bad_cmd:
         qemu_log_mask(LOG_GUEST_ERROR,
-                      "%s: unknown command %02x\n", __func__, s->cmd);
+                      "%s: unknown command 0x%02x\n", __func__, s->cmd);
         break;
     }
 
-- 
2.31.1

Re: [PATCH] hw/arm/nseries: Display hexadecimal value with '0x' prefix
Posted by Richard Henderson 2 years, 9 months ago
On 7/26/21 5:09 AM, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
> ---
>   hw/arm/nseries.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~

Re: [PATCH] hw/arm/nseries: Display hexadecimal value with '0x' prefix
Posted by Peter Maydell 2 years, 9 months ago
On Mon, 26 Jul 2021 at 16:09, Philippe Mathieu-Daudé <f4bug@amsat.org> wrote:
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
>  hw/arm/nseries.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c
> index 906c915df78..af3164c5519 100644
> --- a/hw/arm/nseries.c
> +++ b/hw/arm/nseries.c
> @@ -692,7 +692,7 @@ static uint32_t mipid_txrx(void *opaque, uint32_t cmd, int len)
>      default:
>      bad_cmd:
>          qemu_log_mask(LOG_GUEST_ERROR,
> -                      "%s: unknown command %02x\n", __func__, s->cmd);
> +                      "%s: unknown command 0x%02x\n", __func__, s->cmd);
>          break;
>      }



Applied to target-arm.next, thanks.

-- PMM