]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: cleanup tab vs. space
authorKarel Zak <kzak@redhat.com>
Wed, 26 May 2021 09:54:47 +0000 (11:54 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 26 May 2021 09:54:47 +0000 (11:54 +0200)
Do not mix tab and space in structs initializations.

Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/lscpu-cputype.c
sys-utils/lscpu.c

index 834e1c663213d17acfc5068eb4f2a63c1259be96..898775822ee22b29fa99f4414d7e2d05b7b1d660 100644 (file)
@@ -185,7 +185,7 @@ enum {
 static const struct cpuinfo_pattern type_patterns[] =
 {
        /* Sort by fields name! */
-       DEF_PAT_CPUTYPE( "ASEs implemented",    PAT_FLAGS,      flags),         /* mips */
+       DEF_PAT_CPUTYPE( "ASEs implemented",    PAT_FLAGS,      flags),         /* mips */
        DEF_PAT_CPUTYPE( "BogoMIPS",            PAT_BOGOMIPS,   bogomips),      /* aarch64 */
        DEF_PAT_CPUTYPE( "CPU implementer",     PAT_IMPLEMENTER,vendor),        /* ARM and aarch64 */
        DEF_PAT_CPUTYPE( "CPU part",            PAT_PART,       model),         /* ARM and aarch64 */
@@ -196,7 +196,7 @@ static const struct cpuinfo_pattern type_patterns[] =
        DEF_PAT_CPUTYPE( "bogomips per cpu",    PAT_BOGOMIPS,   bogomips),      /* s390 */
        DEF_PAT_CPUTYPE( "cpu",                 PAT_CPU,        modelname),     /* ppc, sparc */
        DEF_PAT_CPUTYPE( "cpu family",          PAT_FAMILY,     family),
-       DEF_PAT_CPUTYPE( "cpu model",           PAT_MODEL,      model),         /* mips */
+       DEF_PAT_CPUTYPE( "cpu model",           PAT_MODEL,      model),         /* mips */
        DEF_PAT_CPUTYPE( "family",              PAT_FAMILY,     family),
        DEF_PAT_CPUTYPE( "features",            PAT_FEATURES,   flags),         /* s390 */
        DEF_PAT_CPUTYPE( "flags",               PAT_FLAGS,      flags),         /* x86 */
@@ -225,11 +225,11 @@ static const struct cpuinfo_pattern cpu_patterns[] =
 {
        /* Sort by fields name! */
        DEF_PAT_CPU( "bogomips",        PAT_BOGOMIPS_CPU, bogomips),
-       DEF_PAT_CPU( "cpu MHz",         PAT_MHZ,          mhz),
+       DEF_PAT_CPU( "cpu MHz",         PAT_MHZ,          mhz),
        DEF_PAT_CPU( "cpu MHz dynamic", PAT_MHZ_DYNAMIC,  dynamic_mhz), /* s390 */
-       DEF_PAT_CPU( "cpu MHz static",  PAT_MHZ_STATIC,   static_mhz),  /* s390 */
+       DEF_PAT_CPU( "cpu MHz static",  PAT_MHZ_STATIC,   static_mhz),  /* s390 */
        DEF_PAT_CPU( "cpu number",      PAT_PROCESSOR,    logical_id),  /* s390 */
-        DEF_PAT_CPU( "processor",      PAT_PROCESSOR,    logical_id),
+       DEF_PAT_CPU( "processor",       PAT_PROCESSOR,    logical_id),
 
 };
 
@@ -246,7 +246,7 @@ static const struct cpuinfo_pattern cpu_patterns[] =
 static const struct cpuinfo_pattern cache_patterns[] =
 {
        /* Sort by fields name! */
-        DEF_PAT_CACHE("cache", PAT_CACHE),
+       DEF_PAT_CACHE("cache",  PAT_CACHE),
 };
 
 #define CPUTYPE_PATTERN_BUFSZ  32
index c9fa3673611232e4e81c44371ec4b05ce3e0dd8b..b5cde272302e6ea29a5034eb06632a0c8a12ee8b 100644 (file)
@@ -80,10 +80,10 @@ struct polarization_modes {
 };
 
 static struct polarization_modes polar_modes[] = {
-       [POLAR_UNKNOWN]    = {"U",  "-"},
-       [POLAR_VLOW]       = {"VL", "vert-low"},
-       [POLAR_VMEDIUM]    = {"VM", "vert-medium"},
-       [POLAR_VHIGH]      = {"VH", "vert-high"},
+       [POLAR_UNKNOWN]    = {"U",  "-"},
+       [POLAR_VLOW]       = {"VL", "vert-low"},
+       [POLAR_VMEDIUM]    = {"VM", "vert-medium"},
+       [POLAR_VHIGH]      = {"VH", "vert-high"},
        [POLAR_HORIZONTAL] = {"H",  "horizontal"},
 };
 
@@ -149,7 +149,7 @@ static struct lscpu_coldesc coldescs_cpu[] =
        [COL_CPU_ADDRESS]      = { "ADDRESS", N_("physical address of a CPU") },
        [COL_CPU_CONFIGURED]   = { "CONFIGURED", N_("shows if the hypervisor has allocated the CPU") },
        [COL_CPU_ONLINE]       = { "ONLINE", N_("shows if Linux currently makes use of the CPU"), SCOLS_FL_RIGHT },
-       [COL_CPU_MHZ]          = { "MHZ", N_("shows the currently MHz of the CPU"), SCOLS_FL_RIGHT },
+       [COL_CPU_MHZ]          = { "MHZ", N_("shows the currently MHz of the CPU"), SCOLS_FL_RIGHT },
        [COL_CPU_MAXMHZ]       = { "MAXMHZ", N_("shows the maximum MHz of the CPU"), SCOLS_FL_RIGHT },
        [COL_CPU_MINMHZ]       = { "MINMHZ", N_("shows the minimum MHz of the CPU"), SCOLS_FL_RIGHT }
 };