Skip to contentSkip to conversation

x86/smptest: Fix whitespacing issues

PATCH In review Kaya, Metin 1 participant 2 messages Jan 4, 2022 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 x86/smptest: Fix whitespacing issues

​​​​The convention is using spaces in x86/smptest.c. However, tab was used in 2 places. Replaced them with spaces.​

From aa35cf403ef2296afb20cbe96cf771495eebcd99 Mon Sep 17 00:00:00 2001
From: Metin Kaya <[email protected]>
Date: Wed, 22 Dec 2021 18:25:20 +0000
Subject: [kvm-unit-tests PATCH 2/2] x86/smptest: Fix whitespacing issues

The convention is using spaces in x86/smptest.c. However, tab was used in 2 places. Replaced them with spaces.

---
 x86/smptest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
x86/smptest.c +2 -2
index 2989aa0..6391759 100644
@@ -9,7 +9,7 @@ static void ipi_test(void *data)
 
     printf("ipi called, cpu %d\n", n);
     if (n != smp_id())
-	printf("but wrong cpu %d\n", smp_id());
+        printf("but wrong cpu %d\n", smp_id());
     else
         nipis++;
 }
@@ -22,7 +22,7 @@ int main(void)
     ncpus = cpu_count();
     printf("found %d cpus\n", ncpus);
     for (i = 0; i < ncpus; ++i)
-	on_cpu(i, ipi_test, (void *)(long)i);
+        on_cpu(i, ipi_test, (void *)(long)i);
 
     report(nipis == ncpus, "IPI to each CPU");
     return report_summary();
Signature · 1 line
2.32.0
#1 lore raw

This is up-to-date version of the same patch.

________________________________________
From: Kaya, Metin
Sent: 04 January 2022 12:51
To: [email protected]
Subject: [kvm-unit-tests PATCH 2/2] x86/smptest: Fix whitespacing issues

​​​​The convention is using spaces in x86/smptest.c. However, tab was used in 2 places. Replaced them with spaces.​

From 9431d139ced6e14efc7a11d644b59d4257e0ed6f Mon Sep 17 00:00:00 2001
From: Metin Kaya <[email protected]>
Date: Wed, 22 Dec 2021 18:25:20 +0000
Subject: [kvm-unit-tests PATCH 2/2] x86/smptest: Fix whitespacing issues

The convention is using spaces in x86/smptest.c. However, tab was used in 2 places. Replaced them with spaces.

---
 x86/smptest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
x86/smptest.c +2 -2
index cbb4e60..75cc39b 100644
@@ -10,7 +10,7 @@ static void ipi_test(void *data)
 
     printf("ipi called, cpu %d\n", n);
     if (id_map[n] != smp_id())
-	printf("but wrong cpu %d\n", smp_id());
+        printf("but wrong cpu %d\n", smp_id());
     else
         nipis++;
 }
@@ -23,7 +23,7 @@ int main(void)
     ncpus = cpu_count();
     printf("found %d cpus\n", ncpus);
     for (i = 0; i < ncpus; ++i)
-	on_cpu(i, ipi_test, (void *)(long)i);
+        on_cpu(i, ipi_test, (void *)(long)i);
 
     report(nipis == ncpus, "IPI to each CPU");
     return report_summary();
Signature · 1 line
2.32.0