From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Subject: [PULL 04/16] target/arm: Don't use '#' flag of printf format
Date: Tue, 10 Nov 2020 11:19:05 +0000 [thread overview]
Message-ID: <20201110111917.29539-5-peter.maydell@linaro.org> (raw)
In-Reply-To: <20201110111917.29539-1-peter.maydell@linaro.org>
From: Xinhao Zhang <zhangxinhao1@huawei.com>
Fix code style. Don't use '#' flag of printf format ('%#') in
format strings, use '0x' prefix instead
Signed-off-by: Xinhao Zhang <zhangxinhao1@huawei.com>
Signed-off-by: Kai Deng <dengkai1@huawei.com>
Message-id: 20201103114529.638233-2-zhangxinhao1@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/translate-a64.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/arm/translate-a64.c b/target/arm/translate-a64.c
index 072754fa24d..1867ec293f4 100644
--- a/target/arm/translate-a64.c
+++ b/target/arm/translate-a64.c
@@ -12114,7 +12114,7 @@ static void disas_simd_three_reg_same_fp16(DisasContext *s, uint32_t insn)
gen_helper_advsimd_acgt_f16(tcg_res, tcg_op1, tcg_op2, fpst);
break;
default:
- fprintf(stderr, "%s: insn %#04x, fpop %#2x @ %#" PRIx64 "\n",
+ fprintf(stderr, "%s: insn 0x%04x, fpop 0x%2x @ 0x%" PRIx64 "\n",
__func__, insn, fpopcode, s->pc_curr);
g_assert_not_reached();
}
@@ -13121,7 +13121,7 @@ static void disas_simd_two_reg_misc_fp16(DisasContext *s, uint32_t insn)
case 0x7f: /* FSQRT (vector) */
break;
default:
- fprintf(stderr, "%s: insn %#04x fpop %#2x\n", __func__, insn, fpop);
+ fprintf(stderr, "%s: insn 0x%04x fpop 0x%2x\n", __func__, insn, fpop);
g_assert_not_reached();
}
--
2.20.1
next prev parent reply other threads:[~2020-11-10 11:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-10 11:19 [PULL 00/16] target-arm queue Peter Maydell
2020-11-10 11:19 ` [PULL 01/16] hw/arm/Kconfig: ARM_V7M depends on PTIMER Peter Maydell
2020-11-10 11:19 ` [PULL 02/16] ssi: Fix bad printf format specifiers Peter Maydell
2020-11-10 11:19 ` [PULL 03/16] target/arm: add spaces around operator Peter Maydell
2020-11-10 11:19 ` Peter Maydell [this message]
2020-11-10 11:19 ` [PULL 05/16] target/arm: add space before the open parenthesis '(' Peter Maydell
2020-11-10 11:19 ` [PULL 06/16] docs: add some notes on the sbsa-ref machine Peter Maydell
2020-11-10 11:19 ` [PULL 07/16] hw/arm/virt: Remove dependency on Cortex-A15 MPCore peripherals Peter Maydell
2020-11-10 11:19 ` [PULL 08/16] target/arm: Fix neon VTBL/VTBX for len > 1 Peter Maydell
2020-11-10 11:19 ` [PULL 09/16] hw/arm/armsse: Correct expansion MPC interrupt lines Peter Maydell
2020-11-10 11:19 ` [PULL 10/16] hw/misc/stm32f2xx_syscfg: Remove extraneous IRQ Peter Maydell
2020-11-10 11:19 ` [PULL 11/16] hw/arm/nseries: Remove invalid/unnecessary n8x0_uart_setup() Peter Maydell
2020-11-10 11:19 ` [PULL 12/16] hw/arm/musicpal: Don't connect two qemu_irqs directly to the same input Peter Maydell
2020-11-10 11:19 ` [PULL 13/16] hw/arm/musicpal: Only use qdev_get_gpio_in() when necessary Peter Maydell
2020-11-10 11:19 ` [PULL 14/16] hw/arm/nseries: Check return value from load_image_targphys() Peter Maydell
2020-11-10 11:19 ` [PULL 15/16] tests/qtest/npcm7xx_rng-test: count runs properly Peter Maydell
2020-11-10 11:19 ` [PULL 16/16] target/arm/translate-neon.c: Handle VTBL UNDEF case before VFP access check Peter Maydell
2020-11-10 21:11 ` [PULL 00/16] target-arm queue Peter Maydell
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=20201110111917.29539-5-peter.maydell@linaro.org \
--to=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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;
as well as URLs for NNTP newsgroup(s).