From 7dc10450ddf0cafad0e145683b56f2b2e4805639 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 29 May 2009 15:10:28 -0700 Subject: [PATCH] Run Nindent on com32/modules/cpuidtest.c Automatically reformat com32/modules/cpuidtest.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- com32/modules/cpuidtest.c | 130 +++++++++++++++++++++++++++++----------------- 1 file changed, 83 insertions(+), 47 deletions(-) diff --git a/com32/modules/cpuidtest.c b/com32/modules/cpuidtest.c index cf07f20..bfc1c19 100644 --- a/com32/modules/cpuidtest.c +++ b/com32/modules/cpuidtest.c @@ -41,58 +41,94 @@ char display_line; int main(void) { - s_cpu cpu; - openconsole(&dev_stdcon_r, &dev_stdcon_w); + s_cpu cpu; + openconsole(&dev_stdcon_r, &dev_stdcon_w); - for (;;) { + for (;;) { detect_cpu(&cpu); - printf("Vendor = %s\n",cpu.vendor); - printf("Model = %s\n",cpu.model); - printf("Vendor ID = %d\n",cpu.vendor_id); - printf("Family = %d\n",cpu.family); - printf("Model ID = %d\n",cpu.model_id); - printf("Stepping = %d\n",cpu.stepping); + printf("Vendor = %s\n", cpu.vendor); + printf("Model = %s\n", cpu.model); + printf("Vendor ID = %d\n", cpu.vendor_id); + printf("Family = %d\n", cpu.family); + printf("Model ID = %d\n", cpu.model_id); + printf("Stepping = %d\n", cpu.stepping); printf("Flags = "); - if (cpu.flags.fpu) printf("fpu "); - if (cpu.flags.vme) printf("vme "); - if (cpu.flags.de) printf("de "); - if (cpu.flags.pse) printf("pse "); - if (cpu.flags.tsc) printf("tsc "); - if (cpu.flags.msr) printf("msr "); - if (cpu.flags.pae) printf("pae "); - if (cpu.flags.mce) printf("mce "); - if (cpu.flags.cx8) printf("cx8 "); - if (cpu.flags.apic) printf("apic "); - if (cpu.flags.sep) printf("sep "); - if (cpu.flags.mtrr) printf("mtrr "); - if (cpu.flags.pge) printf("pge "); - if (cpu.flags.mca) printf("mca "); - if (cpu.flags.cmov) printf("cmov "); - if (cpu.flags.pat) printf("pat "); - if (cpu.flags.pse_36) printf("pse_36 "); - if (cpu.flags.psn) printf("psn "); - if (cpu.flags.clflsh) printf("clflsh "); - if (cpu.flags.dts) printf("dts "); - if (cpu.flags.acpi) printf("acpi "); - if (cpu.flags.mmx) printf("mmx "); - if (cpu.flags.sse) printf("sse "); - if (cpu.flags.sse2) printf("sse2 "); - if (cpu.flags.ss) printf("ss "); - if (cpu.flags.htt) printf("ht "); - if (cpu.flags.acc) printf("acc "); - if (cpu.flags.syscall) printf("syscall "); - if (cpu.flags.mp) printf("mp "); - if (cpu.flags.nx) printf("nx "); - if (cpu.flags.mmxext) printf("mmxext "); - if (cpu.flags.lm) printf("lm "); - if (cpu.flags.nowext) printf("3dnowext "); - if (cpu.flags.now) printf("3dnow! "); + if (cpu.flags.fpu) + printf("fpu "); + if (cpu.flags.vme) + printf("vme "); + if (cpu.flags.de) + printf("de "); + if (cpu.flags.pse) + printf("pse "); + if (cpu.flags.tsc) + printf("tsc "); + if (cpu.flags.msr) + printf("msr "); + if (cpu.flags.pae) + printf("pae "); + if (cpu.flags.mce) + printf("mce "); + if (cpu.flags.cx8) + printf("cx8 "); + if (cpu.flags.apic) + printf("apic "); + if (cpu.flags.sep) + printf("sep "); + if (cpu.flags.mtrr) + printf("mtrr "); + if (cpu.flags.pge) + printf("pge "); + if (cpu.flags.mca) + printf("mca "); + if (cpu.flags.cmov) + printf("cmov "); + if (cpu.flags.pat) + printf("pat "); + if (cpu.flags.pse_36) + printf("pse_36 "); + if (cpu.flags.psn) + printf("psn "); + if (cpu.flags.clflsh) + printf("clflsh "); + if (cpu.flags.dts) + printf("dts "); + if (cpu.flags.acpi) + printf("acpi "); + if (cpu.flags.mmx) + printf("mmx "); + if (cpu.flags.sse) + printf("sse "); + if (cpu.flags.sse2) + printf("sse2 "); + if (cpu.flags.ss) + printf("ss "); + if (cpu.flags.htt) + printf("ht "); + if (cpu.flags.acc) + printf("acc "); + if (cpu.flags.syscall) + printf("syscall "); + if (cpu.flags.mp) + printf("mp "); + if (cpu.flags.nx) + printf("nx "); + if (cpu.flags.mmxext) + printf("mmxext "); + if (cpu.flags.lm) + printf("lm "); + if (cpu.flags.nowext) + printf("3dnowext "); + if (cpu.flags.now) + printf("3dnow! "); printf("\n"); printf("SMP = "); - if (cpu.flags.smp) printf("yes\n"); - else printf("no\n"); + if (cpu.flags.smp) + printf("yes\n"); + else + printf("no\n"); break; - } + } - return 0; + return 0; } -- 2.7.4