Skip to content

Commit c9ccb18

Browse files
committed
drivers: ieee802154: nrf5: improve debug logs
This commit prefixes "0x%x" debug logs with the entity, and prints the "set" parameter when updating a filter. Signed-off-by: Simon Piriou <[email protected]>
1 parent b9bde9e commit c9ccb18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ieee802154/ieee802154_nrf5.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ static int nrf5_set_pan_id(const struct device *dev, uint16_t pan_id)
344344
sys_put_le16(pan_id, pan_id_le);
345345
nrf_802154_pan_id_set(pan_id_le);
346346

347-
LOG_DBG("0x%x", pan_id);
347+
LOG_DBG("pan_id 0x%x", pan_id);
348348

349349
return 0;
350350
}
@@ -358,7 +358,7 @@ static int nrf5_set_short_addr(const struct device *dev, uint16_t short_addr)
358358
sys_put_le16(short_addr, short_addr_le);
359359
nrf_802154_short_address_set(short_addr_le);
360360

361-
LOG_DBG("0x%x", short_addr);
361+
LOG_DBG("short_addr 0x%x", short_addr);
362362

363363
return 0;
364364
}
@@ -381,7 +381,7 @@ static int nrf5_filter(const struct device *dev, bool set,
381381
enum ieee802154_filter_type type,
382382
const struct ieee802154_filter *filter)
383383
{
384-
LOG_DBG("Applying filter %u", type);
384+
LOG_DBG("Applying filter %u set=%d", type, set);
385385

386386
if (!set) {
387387
return -ENOTSUP;

0 commit comments

Comments
 (0)