summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2020-02-01 23:20:54 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-28 23:26:50 +0000
commitb163b4bbd688cd13876db49531d204af710204f0 (patch)
treeb6766860b067dbd3bf89a5a912ec2da9b7e07844
parent698d6da81409feada06fa25084e60c8f96b3cbd5 (diff)
downloadchrome-ec-b163b4bbd688cd13876db49531d204af710204f0.tar.gz
common: mag_cal: Fix debug printf
Fix types and unit: - eigen_pass is a boolean - print the norm of the vector in uT. BUG=none TEST=compile BRANCH=reef Change-Id: Ia46d9dca1952e5c6c727278daf2863091a755363 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2034673 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--common/mag_cal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/mag_cal.c b/common/mag_cal.c
index 3ac2a7bcea..50017fda90 100644
--- a/common/mag_cal.c
+++ b/common/mag_cal.c
@@ -70,8 +70,8 @@ static int moc_eigen_test(struct mag_cal_t *moc)
CPRINTF("ratio %d, mag %d: pass %d\r\n",
PRINTF_FLOAT(evmax / evmin),
- PRINTF_FLOAT(evmag),
- PRINTF_FLOAT(eigen_pass));
+ PRINTF_FLOAT(evmag / MAG_CAL_RAW_UT),
+ eigen_pass);
#endif
return eigen_pass;