Skip to content

Commit 21c4207

Browse files
committed
Clarify the macro definition
1 parent ea8079a commit 21c4207

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

IDE/Renesas/e2studio/RX72N/app_RenesasRX01/src/app_RenesasRX01.c

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
*
33
* Test bare-metal application.
44
*
5-
* Copyright (C) 2025 wolfSSL Inc.
5+
* Copyright (C) 2026 wolfSSL Inc.
66
*
77
* This file is part of wolfBoot.
88
*
@@ -29,6 +29,10 @@
2929
#include "wolfboot/wolfboot.h"
3030
#include "image.h"
3131
#include "r_smc_entry.h"
32+
33+
/* define as 1 to enable full header hexdump */
34+
#define DEBUG_PARTITION 0
35+
3236
static const char* state2str(uint8_t s)
3337
{
3438
switch(s) {
@@ -53,7 +57,7 @@ static const char* upFlag2str(uint8_t s)
5357

5458
static void printPart(uint8_t *part)
5559
{
56-
#ifdef WOLFBOOT_DEBUG_PARTION
60+
#if defined(DEBUG_PARTITION)
5761
uint32_t *v;
5862
int i;
5963
#endif
@@ -75,7 +79,7 @@ static void printPart(uint8_t *part)
7579
wolfBoot_get_update_sector_flag(0, &upflag);
7680
printf("Update flag: %02x (%s)\n", upflag, upFlag2str(upflag));
7781

78-
#ifdef WOLFBOOT_DEBUG_PARTION
82+
#if defined(DEBUG_PARTITION)
7983
v = (uint32_t *)part;
8084
for(i = 0; i < 0x100/4; i++) {
8185
if(i % 4 == 0)
@@ -85,18 +89,6 @@ static void printPart(uint8_t *part)
8589
#endif
8690

8791
}
88-
#ifdef WOLFBOOT_DEBUG_PARTION
89-
static void verify_flash_write(uint32_t addr, int len)
90-
{
91-
uint8_t *p = (uint8_t *)addr;
92-
int i;
93-
printf("verify addr=0x%08x: ", addr);
94-
for (i = 0; i < len && i < 8; i++) {
95-
printf("%02x ", p[i]);
96-
}
97-
printf("\n");
98-
}
99-
#endif
10092

10193
static void printPartitions(void)
10294
{

0 commit comments

Comments
 (0)