mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-20 11:29:31 +00:00
Fix coding style
Let's use the kernel coding style in lm_sensors. Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
This commit is contained in:
1 parent
6e1cff65fb
commit
d20ecfd4e8
1 file changed
+8
-4
@@ -454,8 +454,9 @@ static void print_chip_in(const sensors_chip_name *name,
|
||||
if (sf && get_input_value(name, sf, &val) == 0) {
|
||||
scale_value(&val, &unit);
|
||||
printf("%6.2f %sV%*s", val, unit, 2 - (int)strlen(unit), "");
|
||||
} else
|
||||
} else {
|
||||
printf(" N/A ");
|
||||
}
|
||||
|
||||
sensor_count = alarm_count = 0;
|
||||
get_sensor_limit_data(name, feature, voltage_sensors,
|
||||
@@ -650,8 +651,9 @@ static void print_chip_power(const sensors_chip_name *name,
|
||||
if (sf && get_input_value(name, sf, &val) == 0) {
|
||||
scale_value(&val, &unit);
|
||||
printf("%6.2f %sW%*s", val, unit, 2 - (int)strlen(unit), "");
|
||||
} else
|
||||
} else {
|
||||
printf(" N/A ");
|
||||
}
|
||||
|
||||
for (i = 0; i < sensor_count; i++) {
|
||||
/*
|
||||
@@ -698,8 +700,9 @@ static void print_chip_energy(const sensors_chip_name *name,
|
||||
if (sf && get_input_value(name, sf, &val) == 0) {
|
||||
scale_value(&val, &unit);
|
||||
printf("%6.2f %sJ", val, unit);
|
||||
} else
|
||||
} else {
|
||||
printf(" N/A");
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
}
|
||||
@@ -811,8 +814,9 @@ static void print_chip_curr(const sensors_chip_name *name,
|
||||
if (sf && get_input_value(name, sf, &val) == 0) {
|
||||
scale_value(&val, &unit);
|
||||
printf("%6.2f %sA%*s", val, unit, 2 - (int)strlen(unit), "");
|
||||
} else
|
||||
} else {
|
||||
printf(" N/A ");
|
||||
}
|
||||
|
||||
sensor_count = alarm_count = 0;
|
||||
get_sensor_limit_data(name, feature, current_sensors,
|
||||
|
||||
Reference in new issue
Block a user