From d387c863bb3f015fe2906aaa4df35cd003e2c1a1 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Thu, 2 Dec 2021 12:31:32 -0800 Subject: [PATCH] kernel: mem_domain: remove extra slash in Z_PROGBITS_SYM The macro Z_PROGBITS_SYM has "\%" but this is not correct usage to escape "%". So remove the extra slash. Note that this macro is used directly to generate assembly code so it cannot be "%%" as in escaping "%" in printf(). Fixes #40439 Signed-off-by: Daniel Leung --- include/app_memory/app_memdomain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/app_memory/app_memdomain.h b/include/app_memory/app_memdomain.h index 2c3bcfd665a..6d5813df6c8 100644 --- a/include/app_memory/app_memdomain.h +++ b/include/app_memory/app_memdomain.h @@ -81,7 +81,7 @@ struct z_app_region { /* ARM has a quirk in that '@' denotes a comment, so we have to send * %progbits to the assembler instead. */ -#define Z_PROGBITS_SYM "\%" +#define Z_PROGBITS_SYM "%" #else #define Z_PROGBITS_SYM "@" #endif