Remove sensor unit
The value exported could be in Degree or Volt. There is no way
to determine the unit used expect to refer the board semantics.
Until the kernel exports the unit associated with this value,
we can not take a decision from the userspace, the value will
be a raw value.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
diff --git a/sensor.c b/sensor.c
index ff1e3dd..bd8c354 100644
--- a/sensor.c
+++ b/sensor.c
@@ -61,7 +61,7 @@
printf("%s\n", sensor->name);
for (i = 0; i < sensor->nrtemps; i++)
- printf(" %s %.1f °C\n", sensor->temperatures[i].name,
+ printf(" %s %.1f °C/V\n", sensor->temperatures[i].name,
(float)sensor->temperatures[i].temp / 1000);
for (i = 0; i < sensor->nrfans; i++)
@@ -219,7 +219,7 @@
(*line)++;
for (i = 0; i < sensor->nrtemps; i++) {
- sprintf(buf, " %-35s%.1f °C", sensor->temperatures[i].name,
+ sprintf(buf, " %-35s%.1f", sensor->temperatures[i].name,
(float)sensor->temperatures[i].temp / 1000);
display_print_line(SENSOR, *line, buf, 0, t);
(*line)++;