Now that we know which status we are in, print it in the textual form.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
}
cell_avg /= (double)active_cells;
}
cell_avg /= (double)active_cells;
- pr_info("\r\033[K%8s Ubat: %.3fV Ucell avg: %.3fV "
+ pr_info("\r\033[K%s [%s] Ubat: %.3fV Ucell avg: %.3fV "
"Current: %.2fA Charge %.0fmAh ",
"Current: %.2fA Charge %.0fmAh ",
- time_str, data->charging_voltage, cell_avg,
+ time_str,
+ state_to_str(data->state),
+ data->charging_voltage, cell_avg,
data->charging_current, data->total_charge);
fflush(stdout);
data->charging_current, data->total_charge);
fflush(stdout);