logging: Fix misspelled CONFIG_RISCV32
The conditional CONFIG_RISCV32 was misspelled in is_rodata() resulting in the test failing all strings that are in RODATA section. Additionally, it was using wrong section names for riscv. Fixes #17065 Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
parent
39c8451422
commit
70f25eb329
@ -125,13 +125,12 @@ static u32_t count_s(const char *str, u32_t nargs)
|
||||
*/
|
||||
static bool is_rodata(const void *addr)
|
||||
{
|
||||
#if defined(CONFIG_ARM) || defined(CONFIG_ARC) || defined(CONIFG_RISCV32) || \
|
||||
defined(CONFIG_X86)
|
||||
#if defined(CONFIG_ARM) || defined(CONFIG_ARC) || defined(CONFIG_X86)
|
||||
extern const char *_image_rodata_start[];
|
||||
extern const char *_image_rodata_end[];
|
||||
#define RO_START _image_rodata_start
|
||||
#define RO_END _image_rodata_end
|
||||
#elif defined(CONFIG_NIOS2)
|
||||
#elif defined(CONFIG_NIOS2) || defined(CONFIG_RISCV32)
|
||||
extern const char *_image_rom_start[];
|
||||
extern const char *_image_rom_end[];
|
||||
#define RO_START _image_rom_start
|
||||
|
||||
Loading…
Reference in New Issue
Block a user