1 /* 2 * Copyright (c) 2020 - 2021 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <stdint.h> 8 #include <stddef.h> 9 10 #include <zephyr/kernel.h> 11 nrf_802154_spinel_log(const char * p_fmt,...)12void nrf_802154_spinel_log(const char *p_fmt, ...) 13 { 14 va_list args; 15 16 va_start(args, p_fmt); 17 vprintk(p_fmt, args); 18 va_end(args); 19 } 20 nrf_802154_spinel_buff_log(const uint8_t * p_buff,size_t buff_len)21void nrf_802154_spinel_buff_log(const uint8_t *p_buff, size_t buff_len) 22 { 23 for (size_t i = 0; i < buff_len; i++) { 24 if (i != 0) { 25 printk(" "); 26 } 27 28 printk("0x%02x", p_buff[i]); 29 } 30 } 31