diff options
author | Julius Werner <jwerner@chromium.org> | 2024-03-19 13:29:39 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2024-03-19 22:50:03 +0000 |
commit | 6b4522e2aa40b6c97929342716ad61e32a694cce (patch) | |
tree | fdeffd4abfb35e61073931db2bc655277ec173ff /util/amdfwtool | |
parent | ebc6f9d2e17a0f85fd127c11723b5bb461f93441 (diff) |
libpayload: gdb: Make die_if() format string a literal
CB:77969 made minor changes to the die_if() macro. One of the
consequences is that the format string passed to it can no longer be a
real `char *` variable, it needs to actually be a string literal. In the
vast majority of call sites that is already the case, but there was one
instance in the GDB code where we're reusing the same format string many
times and for that reason put it into a const variable. Fix that by
turning it into a #define macro instead. (Even though this technically
duplicates the format string, the linker is able to merge identical
string literals together again, so it doesn't really end up taking more
space.)
Change-Id: I532a04b868f12aa0e3c01422c075ddaade251827
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/81361
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/amdfwtool')
0 files changed, 0 insertions, 0 deletions