Julius Werner has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32113
Change subject: assert: Don't stringify 'message' in dead_code() ......................................................................
assert: Don't stringify 'message' in dead_code()
dead_code() is already supposed to be called with a string message, we don't need to stringify the argument again (and doing so makes the output look a bit weird).
Change-Id: I63399dc484e2150d8c027bc0256d9285e471f7cc Signed-off-by: Julius Werner jwerner@chromium.org --- M src/include/assert.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/32113/1
diff --git a/src/include/assert.h b/src/include/assert.h index afbed03..6a442d6 100644 --- a/src/include/assert.h +++ b/src/include/assert.h @@ -45,7 +45,7 @@ * valid if a certain Kconfig option is set. */ #define __dead_code(message, line) do { \ - __attribute__((error(#message " in " __FILE__ ":" #line))) \ + __attribute__((error(message " in " __FILE__ ":" #line))) \ extern void dead_code_assertion_failed_##line(void); \ dead_code_assertion_failed_##line(); \ } while (0)