mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 17:11:42 +00:00
isl923x: Use ccprintf in print_amon_bmon
Makes sure output is still shown even when we set "chan 0". BRANCH=none BUG=none TEST=chan 0; amon => data is printed. Change-Id: Ic2bf525174b451e3f25868a0a77e0174687b6262 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/818850 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
91c21643a9
commit
f60de076e1
@@ -557,7 +557,7 @@ static int print_amon_bmon(enum amon_bmon amon, int direction,
|
||||
|
||||
adc = adc_read_channel(ADC_AMON_BMON);
|
||||
curr = adc / resistor;
|
||||
CPRINTF("%s: %d uV, %d mA\n", text, adc, curr);
|
||||
ccprintf("%s: %d uV, %d mA\n", text, adc, curr);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user