mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
Tidy output of temps command
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=temps - see, prettier! Change-Id: Ia11937e8b1be384f7b8386c97aea0eb3e2eef897
This commit is contained in:
@@ -84,14 +84,14 @@ static int command_temps(int argc, char **argv)
|
||||
uart_puts("Reading temperature sensors...\n");
|
||||
|
||||
for (i = 0; i < TEMP_SENSOR_COUNT; ++i) {
|
||||
uart_printf(" Temp from %s: ", temp_sensors[i].name);
|
||||
uart_printf(" %-20s: ", temp_sensors[i].name);
|
||||
t = temp_sensor_read(i);
|
||||
if (t < 0) {
|
||||
uart_printf("Error.\n\n");
|
||||
uart_printf("Error\n");
|
||||
rv = -1;
|
||||
}
|
||||
else
|
||||
uart_printf("%d K = %d C\n\n", t, t - 273);
|
||||
uart_printf("%d K = %d C\n", t, t - 273);
|
||||
}
|
||||
|
||||
if (rv == -1)
|
||||
|
||||
Reference in New Issue
Block a user