diff mbox

[kvm-unit-tests,2/2] arm/arm64: gic: apply report_prefix_pushf

Message ID 20170522181821.29482-3-drjones@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Jones May 22, 2017, 6:18 p.m. UTC
Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 arm/gic.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Thomas Huth May 22, 2017, 8:09 p.m. UTC | #1
On 22.05.2017 20:18, Andrew Jones wrote:
> Signed-off-by: Andrew Jones <drjones@redhat.com>
> ---
>  arm/gic.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/arm/gic.c b/arm/gic.c
> index 82f663218b0b..e27e8a36a9f0 100644
> --- a/arm/gic.c
> +++ b/arm/gic.c
> @@ -297,7 +297,6 @@ static void run_active_clear_test(void)
>  
>  int main(int argc, char **argv)
>  {
> -	char pfx[8];
>  	int cpu;
>  
>  	if (!gic_init()) {
> @@ -305,8 +304,7 @@ int main(int argc, char **argv)
>  		return report_summary();
>  	}
>  
> -	snprintf(pfx, sizeof(pfx), "gicv%d", gic_version());
> -	report_prefix_push(pfx);
> +	report_prefix_pushf("gicv%d", gic_version());
>  
>  	switch (gic_version()) {
>  	case 2:
> 

Reviewed-by: Thomas Huth <thuth@redhat.com>
diff mbox

Patch

diff --git a/arm/gic.c b/arm/gic.c
index 82f663218b0b..e27e8a36a9f0 100644
--- a/arm/gic.c
+++ b/arm/gic.c
@@ -297,7 +297,6 @@  static void run_active_clear_test(void)
 
 int main(int argc, char **argv)
 {
-	char pfx[8];
 	int cpu;
 
 	if (!gic_init()) {
@@ -305,8 +304,7 @@  int main(int argc, char **argv)
 		return report_summary();
 	}
 
-	snprintf(pfx, sizeof(pfx), "gicv%d", gic_version());
-	report_prefix_push(pfx);
+	report_prefix_pushf("gicv%d", gic_version());
 
 	switch (gic_version()) {
 	case 2: