[PATCH 3/3] monitor:Don't use '#' flag of printf format ('%#') in format strings

2020-11-24 Thread Yutao Ai
Delete '#' and use '0x' prefix instead Signed-off-by: Yutao Ai --- monitor/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor/misc.c b/monitor/misc.c index 7588f12053..2eb563f6f3 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -910,7 +

[PATCH 1/3] monitor:open brace '{' following struct go on the same line

2020-11-24 Thread Yutao Ai
Move the open brace '{' following struct go on the same line Signed-off-by: Yutao Ai --- monitor/hmp-cmds.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monitor/hmp-cmds.c b/monitor/hmp-cmds.c index 8d7f5fee7e..64188c9fa2 100644 --- a/monitor/hmp-cmds.c +++

[PATCH 2/3] monitor:braces {} are necessary for all arms of this statement

2020-11-24 Thread Yutao Ai
Fix the errors by add {} Signed-off-by: Yutao Ai --- monitor/misc.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/monitor/misc.c b/monitor/misc.c index 398211a034..7588f12053 100644 --- a/monitor/misc.c +++ b/monitor/misc.c @@ -492,8 +492,10 @@ static void

[PATCH 0/3] Fix some style problems in monitor

2020-11-24 Thread Yutao Ai
I find some style problems while using checkpatch.pl to check monitor codes. And I fixed these style problems in the submit patches. Yutao Ai (3): monitor:open brace '{' following struct go on the same line monitor:braces {} are necessary for all arms of this statement monitor

[PATCH 2/2] qom:delete trailing whitespace

2020-11-18 Thread Yutao Ai
Delete trailing whitespace Signed-off-by: Yutao Ai --- qom/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qom/object.c b/qom/object.c index 0cd2161012..1ebf92bdc7 100644 --- a/qom/object.c +++ b/qom/object.c @@ -1067,7 +1067,7 @@ static void

[PATCH 1/2] qom:open brace '{' following struct go on the same line

2020-11-18 Thread Yutao Ai
Move the open brace '{' following struct go on the same line Signed-off-by: Yutao Ai --- qom/object.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/qom/object.c b/qom/object.c index 1065355233..0cd2161012 100644 --- a/qom/object.c +++ b/qo

[PATCH 0/2] Fix some style problems in qom

2020-11-18 Thread Yutao Ai
I find some style problems while using checkpatch.pl to check qom code. And I fixed these style problems in the submit patches. Yutao Ai (2): qom:open brace '{' following struct go on the same line qom:delete trailing whitespace qom/object.c | 17 ++--- 1 file