aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-27 20:53:08 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-01-27 20:53:08 +0100
commit408c0bc927bcab6507398f64b6b26bc9af7ba740 (patch)
treea7866bdbfedd0ed13dd62aa6a439045d8a6671d2
parent8562dba84203a5b5c27d87edac2cdd234e8df92b (diff)
downloadhurd-408c0bc927bcab6507398f64b6b26bc9af7ba740.tar.gz
hurd-408c0bc927bcab6507398f64b6b26bc9af7ba740.tar.bz2
hurd-408c0bc927bcab6507398f64b6b26bc9af7ba740.zip
procfs: Fix coding style
-rw-r--r--procfs/rootdir.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 84416f41..2c0d46f3 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -801,25 +801,25 @@ cpuinfo_x86 (void* hook, char **contents, ssize_t *contents_len)
vendor, family, model, model_name, stepping);
fprintf (m, "flags\t\t:");
- for (index = 0; index < (sizeof(cpu_features_edx)/sizeof(char*)); index++)
+ for (index = 0; index < (sizeof (cpu_features_edx)/sizeof (char*)); index++)
{
if (cpu_features_edx[index] == NULL)
continue;
if (feature_edx & (1ul << index))
- fprintf(m, " %s", cpu_features_edx[index]);
+ fprintf (m, " %s", cpu_features_edx[index]);
}
- for (index = 0; index < (sizeof(cpu_features_ecx)/sizeof(char*)); index++)
+ for (index = 0; index < (sizeof (cpu_features_ecx)/sizeof (char*)); index++)
{
if (cpu_features_ecx[index] == NULL)
continue;
if (feature_ecx & (1ul << index))
- fprintf(m, " %s", cpu_features_ecx[index]);
+ fprintf (m, " %s", cpu_features_ecx[index]);
}
- fprintf(m, "\n\n");
+ fprintf (m, "\n\n");
out:
- fclose(m);
+ fclose (m);
return err;
}
#endif
@@ -858,7 +858,7 @@ cpuinfo_aarch64 (void *hook, char **contents, ssize_t *contents_len)
if (m == NULL)
return errno;
- err = aarch64_get_hwcaps (mach_host_self(), &caps, &midr, &revidr);
+ err = aarch64_get_hwcaps (mach_host_self (), &caps, &midr, &revidr);
if (err)
goto out;
@@ -868,31 +868,31 @@ cpuinfo_aarch64 (void *hook, char **contents, ssize_t *contents_len)
part_num = (midr & 0x0000fff0) >> 4;
revision = (midr & 0x0000000f) >> 0;
- fprintf(m, "processor\t\t: 0\n");
- fprintf(m, "Features\t\t:");
+ fprintf (m, "processor\t\t: 0\n");
+ fprintf (m, "Features\t\t:");
for (index = 0; index < (sizeof (cpu_features_1) / sizeof (char *)); index++)
{
if (cpu_features_1[index] == NULL)
continue;
if (caps[0] & (1ul << index))
- fprintf(m, " %s", cpu_features_1[index]);
+ fprintf (m, " %s", cpu_features_1[index]);
}
- for (index = 0; index < (sizeof(cpu_features_2) / sizeof(char *)); index++)
+ for (index = 0; index < (sizeof (cpu_features_2) / sizeof (char *)); index++)
{
if (cpu_features_2[index] == NULL)
continue;
if (caps[1] & (1ul << index))
- fprintf(m, " %s", cpu_features_2[index]);
+ fprintf (m, " %s", cpu_features_2[index]);
}
- fprintf(m, "\n");
- fprintf(m, "CPU implementer\t\t: 0x%x\n", implementer);
- fprintf(m, "CPU architecture\t: %d\n", architecture);
- fprintf(m, "CPU variant\t\t: 0x%x\n", variant);
- fprintf(m, "CPU part\t\t: 0x%x\n", part_num);
- fprintf(m, "CPU revision\t\t: %d\n", revision);
- fprintf(m, "\n");
+ fprintf (m, "\n");
+ fprintf (m, "CPU implementer\t\t: 0x%x\n", implementer);
+ fprintf (m, "CPU architecture\t: %d\n", architecture);
+ fprintf (m, "CPU variant\t\t: 0x%x\n", variant);
+ fprintf (m, "CPU part\t\t: 0x%x\n", part_num);
+ fprintf (m, "CPU revision\t\t: %d\n", revision);
+ fprintf (m, "\n");
out:
- fclose(m);
+ fclose (m);
return err;
}
#endif
@@ -901,9 +901,9 @@ static error_t
rootdir_gc_cpuinfo (void *hook, char **contents, ssize_t *contents_len)
{
#if defined (__x86_64__) || defined (__i486__) || defined (__i586__) || defined (__i686__)
- return cpuinfo_x86(hook, contents, contents_len);
+ return cpuinfo_x86 (hook, contents, contents_len);
#elif defined (__aarch64__)
- return cpuinfo_aarch64(hook, contents, contents_len);
+ return cpuinfo_aarch64 (hook, contents, contents_len);
#else
return ENOTSUP;
#endif