mb/google/bluey: Add percentage symbol to battery level log
Update the battery state-of-charge print statement in romstage to include a percentage symbol. This makes the log output more readable and consistent with battery level reporting. Use '%%' to correctly escape and print the literal '%' sign in the printk statement. BUG=None TEST=Boot Bluey and verify romstage logs show "Battery state-of-charge 95%" instead of "Battery state-of-charge 95". Change-Id: I97b533567b56bfaba41508e35a6f324f0dbf331e Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90684 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ae48ff8c0b
commit
b7ad850fd6
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ static void platform_dump_battery_soc_information(void)
|
|||
if (google_chromeec_read_batt_state_of_charge(&batt_pct))
|
||||
printk(BIOS_WARNING, "Failed to get battery level\n");
|
||||
else
|
||||
printk(BIOS_INFO, "Battery state-of-charge %d\n", batt_pct);
|
||||
printk(BIOS_INFO, "Battery state-of-charge %d%%\n", batt_pct);
|
||||
}
|
||||
|
||||
void platform_romstage_main(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue