}
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 ",
- 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);