diff options
author | Evan Green <evgreen@chromium.org> | 2019-10-01 13:39:24 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-05 00:47:56 +0000 |
commit | 1d82a0592eedcfdaf666111a4ff8e6a9665fa014 (patch) | |
tree | 02d30616c04b4e945647dacfb6d254223a593a9f /driver/accelgyro_bmi160.c | |
parent | 3247d52abeb0ccacc49f0d18dadf47c77f8f0177 (diff) | |
download | chrome-ec-1d82a0592eedcfdaf666111a4ff8e6a9665fa014.tar.gz |
include: De-longify BIT() macro
The BIT() macro was recently introduced to make things more
comfortable to upstream Linux. However, there's no need for it to
be a long.
Change the macro back to being an int (int and long are the same on
32-bit platforms, which all of our ECs are), so that we can reduce
the number of %l specifiers. The semantics of %l have changed, we
are deprecating its use on master to reduce the risk that we
accidentally cherry-pick one of those printfs to an old firmware
branch.
BUG=chromium:984041
TEST=make -j buildall
BRANCH=None
Change-Id: I95b9cd49895cc67998dcb1de9bab5b5591d93243
Signed-off-by: Evan Green <evgreen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1834601
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'driver/accelgyro_bmi160.c')
-rw-r--r-- | driver/accelgyro_bmi160.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/accelgyro_bmi160.c b/driver/accelgyro_bmi160.c index 85f8dee7d4..5fd9e3acda 100644 --- a/driver/accelgyro_bmi160.c +++ b/driver/accelgyro_bmi160.c @@ -961,7 +961,7 @@ static int load_fifo(struct motion_sensor_t *s, uint32_t last_ts) */ if (beginning == 0x84848484 || (beginning & 0xdcdcdcdc) == 0x40404040) { - CPRINTS("Suspended FIFO: accel ODR/rate: %ld/%d: 0x%08x", + CPRINTS("Suspended FIFO: accel ODR/rate: %d/%d: 0x%08x", BASE_ODR(s->config[SENSOR_CONFIG_AP].odr), get_data_rate(s), beginning); |