summaryrefslogtreecommitdiff
path: root/common/charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/charger.c')
-rw-r--r--common/charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/charger.c b/common/charger.c
index 87d2f8e0ce..7ee80a9c23 100644
--- a/common/charger.c
+++ b/common/charger.c
@@ -128,7 +128,7 @@ void print_charger_debug(void)
/* option */
print_item_name("Option:");
if (check_print_error(charger_get_option(&d)))
- ccprintf("%016b (0x%04x)\n", d, d);
+ ccprintf("%pb (0x%04x)\n", BINARY_VALUE(d, 16), d);
/* manufacturer id */
print_item_name("Man id:");