Skip to content

Commit

Permalink
drivers: wifi: Use logger module
Browse files Browse the repository at this point in the history
Remove printfs and use the logger module. Newline is automatically
appended, so remove it to avoid duplication.

Signed-off-by: Chaitanya Tata <[email protected]>
  • Loading branch information
krish2718 authored and nordicjm committed Nov 3, 2023
1 parent 8b73132 commit d105cfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/wifi/nrf700x/src/fw_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
* by disabling XIP and enabling it again after use. This means no LOG_* macros
* (buffered) or buffered printk can be used in this file, else it will crash.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand All @@ -22,6 +21,9 @@
#include <zephyr/drivers/flash/nrf_qspi_nor.h>
#endif /* CONFIG_NRF_WIFI_PATCHES_EXT_FLASH */

#include <zephyr/logging/log.h>
LOG_MODULE_DECLARE(wifi_nrf, CONFIG_WIFI_NRF700X_LOG_LEVEL);

#include <fmac_main.h>

/* INCBIN macro Taken from https://gist.github.com/mmozeiko/ed9655cf50341553d282 */
Expand Down Expand Up @@ -84,7 +86,7 @@ enum nrf_wifi_status nrf_wifi_fw_load(void *rpu_ctx)
status = nrf_wifi_fmac_fw_load(rpu_ctx, &fw_info);

if (status != NRF_WIFI_STATUS_SUCCESS) {
printf("%s: nrf_wifi_fmac_fw_load failed\n", __func__);
LOG_ERR("%s: nrf_wifi_fmac_fw_load failed", __func__);
}

#if defined(CONFIG_NRF_WIFI_PATCHES_EXT_FLASH) && defined(CONFIG_NORDIC_QSPI_NOR)
Expand Down

0 comments on commit d105cfb

Please sign in to comment.