Skip to content
Permalink
Browse files

drivers: adxl362: use logger API

Use logger API instead of printk.

Signed-off-by: Brett Witherspoon <spoonb@cdspooner.com>
  • Loading branch information...
bwitherspoon authored and nashif committed May 4, 2019
1 parent 86a3e8f commit bfea453693ed41526f2da1d5bea98a2995f3fc63
Showing with 2 additions and 3 deletions.
  1. +2 −3 drivers/sensor/adxl362/adxl362.c
@@ -10,7 +10,6 @@
#include <sensor.h>
#include <init.h>
#include <gpio.h>
#include <misc/printk.h>
#include <misc/byteorder.h>
#include <misc/__assert.h>
#include <spi.h>
@@ -509,12 +508,12 @@ int adxl362_set_interrupt_mode(struct device *dev, u8_t mode)
u8_t new_act_inact_reg;
int ret;

printk("Mode: %d \n", mode);
LOG_DBG("Mode: %d", mode);

if (mode != ADXL362_MODE_DEFAULT &&
mode != ADXL362_MODE_LINK &&
mode != ADXL362_MODE_LOOP) {
printk("Wrong mode \n");
LOG_ERR("Wrong mode");
return -EINVAL;
}

0 comments on commit bfea453

Please sign in to comment.
You can’t perform that action at this time.