Skip to content

Commit 986e818

Browse files
SebastianBoeoss-history
authored andcommitted
[nrf fromlist] zephyr/boot_serial_extension: us BOOT_LOG instead of LOG_
Use MCUboot logging macros instead of zephyr-rtos native. This fixes build failure on MCUBOOT_LOG_MODULE_DECLARE() when LOG is disabled. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no> Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no> (cherry picked from commit 9f89c32)
1 parent f8b974d commit 986e818

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

boot/zephyr/boot_serial_extensions.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "bootutil/bootutil_public.h"
2020
#include "bootutil/boot_hooks.h"
2121

22-
MCUBOOT_LOG_MODULE_DECLARE(mcuboot);
22+
BOOT_LOG_MODULE_DECLARE(mcuboot);
2323

2424
#ifdef CONFIG_BOOT_MGMT_CUSTOM_STORAGE_ERASE
2525
static int bs_custom_storage_erase(cbor_state_t *cs)
@@ -31,11 +31,11 @@ static int bs_custom_storage_erase(cbor_state_t *cs)
3131
rc = flash_area_open(FLASH_AREA_ID(storage), &fa);
3232

3333
if (rc < 0) {
34-
LOG_ERR("failed to open flash area");
34+
BOOT_LOG_ERR("failed to open flash area");
3535
} else {
3636
rc = flash_area_erase(fa, 0, FLASH_AREA_SIZE(storage));
3737
if (rc < 0) {
38-
LOG_ERR("failed to erase flash area");
38+
BOOT_LOG_ERR("failed to erase flash area");
3939
}
4040
flash_area_close(fa);
4141
}

0 commit comments

Comments
 (0)