[PATCH] hw/core/register.c: Don't use '#' flag of printf format

2020-11-16 Thread Xinhao Zhang
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- hw/core/register.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff -

[PATCH] fpu/softfloat.c: add spaces around operator

2020-11-14 Thread Xinhao Zhang
Fix code style. Operator needs spaces both sides. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- fpu/softfloat.c | 150 1 file changed, 75 insertions(+), 75 deletions(-) diff --git a/fpu/softfloat.c b/fpu/softfloat.c index 67cfa0fd82

[PATCH] hw/xen: Don't use '#' flag of printf format

2020-11-04 Thread Xinhao Zhang
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- hw/xen/xen_pt.c | 10 +- hw/xen/xen_pt_config_init.c | 6 +++--

[PATCH 3/3] target/arm: add space before the open parenthesis '('

2020-11-03 Thread Xinhao Zhang
Fix code style. Space required before the open parenthesis '('. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- target/arm/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/arm/translate.c b/target/arm/translate.c index 38371db540..efa3b59

[PATCH 2/3] target/arm: Don't use '#' flag of printf format

2020-11-03 Thread Xinhao Zhang
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- target/arm/translate-a64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/

[PATCH 1/3] target/arm: add spaces around operator

2020-11-03 Thread Xinhao Zhang
Fix code style. Operator needs spaces both sides. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- target/arm/arch_dump.c | 8 target/arm/arm-semi.c | 8 target/arm/helper.c| 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/target/arm

[PATCH 2/3] hw/acpi : add space before the open parenthesis '('

2020-11-03 Thread Xinhao Zhang
Fix code style. Space required before the open parenthesis '('. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- hw/acpi/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index ade9158cbf..2c0c83221f 100644 --- a/hw/a

[PATCH 1/3] hw/acpi : Don't use '#' flag of printf format

2020-11-03 Thread Xinhao Zhang
Fix code style. Don't use '#' flag of printf format ('%#') in format strings, use '0x' prefix instead Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- hw/acpi/nvdimm.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff

[PATCH 3/3] hw/acpi : add spaces around operator

2020-11-03 Thread Xinhao Zhang
Fix code style. Operator needs spaces both sides. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng --- hw/acpi/pcihp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/pcihp.c b/hw/acpi/pcihp.c index 32ae8b2c0a..17c32e0ffd 100644 --- a/hw/acpi/pcihp.c +++ b/hw

[PATCH v3 1/3] hw/9pfs : add spaces around operator

2020-10-29 Thread Xinhao Zhang
Fix code style. Operator needs spaces both sides. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng Reported-by: Euler Robot Reviewed-by: Greg Kurz --- hw/9pfs/9p-local.c | 10 +- hw/9pfs/9p.c | 16 2 files changed, 13 insertions(+), 13 deletions(-) diff

[PATCH v3 2/3] hw/9pfs : open brace '{' following struct go on the same line

2020-10-29 Thread Xinhao Zhang
Fix code style. Open braces for struct should go on the same line. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng Reported-by: Euler Robot Reviewed-by: Greg Kurz --- hw/9pfs/9p.h | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h

[PATCH v3 3/3] hw/9pfs : add space before the open parenthesis '('

2020-10-29 Thread Xinhao Zhang
Fix code style. Space required before the open parenthesis '('. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng Reported-by: Euler Robot Reviewed-by: Greg Kurz --- hw/9pfs/cofs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/9pfs/cofs.c b/hw/9pfs/co

[PATCH] target/riscv/csr.c : add space before the open parenthesis '('

2020-10-29 Thread Xinhao Zhang
Fix code style. Space required before the open parenthesis '('. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng Reported-by: Euler Robot --- target/riscv/csr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/csr.c b/target/riscv/csr.c index