From d3b9ea9d66a125e8b0d60e7c0fde7daef40cf9f1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 20 Jun 2017 11:50:04 -0600 Subject: [PATCH] Trivial.. missing newlines in debug output --- wireless/ieee802154/mac802154.c | 3 +++ wireless/ieee802154/mac802154_data.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) 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; }