diff options
Diffstat (limited to 'driver/accel_lis2dw12.c')
-rw-r--r-- | driver/accel_lis2dw12.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver/accel_lis2dw12.c b/driver/accel_lis2dw12.c index a38e7e91c6..66edd8723e 100644 --- a/driver/accel_lis2dw12.c +++ b/driver/accel_lis2dw12.c @@ -18,6 +18,7 @@ #include "util.h" #define CPRINTF(format, args...) cprintf(CC_ACCEL, format, ## args) +#define CPRINTS(format, args...) cprints(CC_ACCEL, format, ## args) /* Only when configured as base accel sensor, fifo and interrupt * are supported. @@ -463,7 +464,7 @@ static int read(const struct motion_sensor_t *s, intv3_t v) LIS2DW12_OUT_X_L_ADDR, raw, OUT_XYZ_SIZE); if (ret != EC_SUCCESS) { - CPRINTF("[%T %s type:0x%X RD XYZ Error]", s->name, s->type); + CPRINTS("%s type:0x%X RD XYZ Error", s->name, s->type); return ret; } @@ -559,8 +560,7 @@ static int init(const struct motion_sensor_t *s) err_unlock: mutex_unlock(s->mutex); - CPRINTF("[%T %s: MS Init type:0x%X Error]\n", s->name, s->type); - + CPRINTS("%s: MS Init type:0x%X Error", s->name, s->type); return EC_ERROR_UNKNOWN; } |