From 88b41debd831203280e745b32eff018aa5e5340e Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Wed, 16 Nov 2016 13:47:15 +0200 Subject: [PATCH] drivers: ieee802154: cc2520: Log errors when starting/stopping cc2520 Change-Id: I55efbfcd91da48b98654a5d1dfcbf02b2d76cf75 Signed-off-by: Andrei Emeltchenko --- drivers/ieee802154/ieee802154_cc2520.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/ieee802154/ieee802154_cc2520.c b/drivers/ieee802154/ieee802154_cc2520.c index c613232b0d..53f0fd23d7 100644 --- a/drivers/ieee802154/ieee802154_cc2520.c +++ b/drivers/ieee802154/ieee802154_cc2520.c @@ -878,6 +878,7 @@ static int cc2520_start(struct device *dev) if (!instruct_sxoscon(&cc2520->spi) || !instruct_srxon(&cc2520->spi) || !verify_osc_stabilization(cc2520)) { + SYS_LOG_ERR("Error starting CC2520\n"); return -EIO; } @@ -902,6 +903,7 @@ static int cc2520_stop(struct device *dev) if (!instruct_srfoff(&cc2520->spi) || !instruct_sxoscoff(&cc2520->spi)) { + SYS_LOG_ERR("Error stopping CC2520\n"); return -EIO; }