diff --git a/wireless/ieee802154/mac802154.c b/wireless/ieee802154/mac802154.c index b7b4b3ca3e..cfc59700da 100644 --- a/wireless/ieee802154/mac802154.c +++ b/wireless/ieee802154/mac802154.c @@ -188,6 +188,7 @@ int mac802154_txdesc_alloc(FAR struct ieee802154_privmac_s *priv, { /* MAC is already released */ + wlwarn("WARNING: mac802154_takesem failed: %d\n", ret); return -EINTR; } @@ -199,6 +200,8 @@ int mac802154_txdesc_alloc(FAR struct ieee802154_privmac_s *priv, ret = mac802154_takesem(&priv->exclsem, allow_interrupt); if (ret < 0) { + wlwarn("WARNING: mac802154_takesem failed: %d\n", ret); + mac802154_givesem(&priv->txdesc_sem); return -EINTR; } diff --git a/wireless/ieee802154/mac802154_data.c b/wireless/ieee802154/mac802154_data.c index bd06e58b16..0676c52103 100644 --- a/wireless/ieee802154/mac802154_data.c +++ b/wireless/ieee802154/mac802154_data.c @@ -149,7 +149,7 @@ int mac802154_req_data(MACHANDLE mac, { /* Should only fail if interrupted by a signal */ - wlwarn("WARNING: mac802154_takesem failed: %d", ret); + wlwarn("WARNING: mac802154_takesem failed: %d\n", ret); return ret; } @@ -239,7 +239,7 @@ int mac802154_req_data(MACHANDLE mac, * exclsem. So the lock is not held if a failure is returned. */ - wlwarn("WARNING: mac802154_txdesc_alloc failed: %d", ret); + wlwarn("WARNING: mac802154_txdesc_alloc failed: %d\n", ret); return ret; }