aboutsummaryrefslogtreecommitdiff
path: root/sensor.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-10-20 13:49:27 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-10-20 13:49:27 +0200
commite262b599169b653190ca5d91a6cdac8a0ca302d2 (patch)
tree017074f4dd999dffc206a5228d576128b46f8241 /sensor.c
parenta61f3260962fd2fd82bb3faf3cd069518d00408d (diff)
downloadpowerdebug-e262b599169b653190ca5d91a6cdac8a0ca302d2.tar.gz
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>
Diffstat (limited to 'sensor.c')
-rw-r--r--sensor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sensor.c b/sensor.c
index ff1e3dd..bd8c354 100644
--- a/sensor.c
+++ b/sensor.c
@@ -61,7 +61,7 @@ static int sensor_dump_cb(struct tree *tree, void *data)
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 @@ static int sensor_display_cb(struct tree *t, void *data)
(*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)++;