diff options
author | Gerrit <chrome-bot@google.com> | 2012-03-13 14:43:02 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2012-03-13 14:43:02 -0700 |
commit | f69b2ffc9021215e7205565b55d1c2d7b6b28095 (patch) | |
tree | 3a119c744f6bd8cdd8e77c5dbb8df40f33ce5492 /common | |
parent | 221c5b8f43e958aaeeb0a9b7a39a397808e179a4 (diff) | |
parent | 8a0cc7756f35d522967f570eef4f77efaed9643c (diff) | |
download | chrome-ec-f69b2ffc9021215e7205565b55d1c2d7b6b28095.tar.gz |
Merge "Tidy output of temps command"
Diffstat (limited to 'common')
-rw-r--r-- | common/temp_sensor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/temp_sensor.c b/common/temp_sensor.c index 4d4c54de18..01bbd4bbe3 100644 --- a/common/temp_sensor.c +++ b/common/temp_sensor.c @@ -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) |