diff options
author | Matei Dibu <matdibu@protonmail.com> | 2022-07-29 10:52:07 +0300 |
---|---|---|
committer | Patrick Georgi <patrick@coreboot.org> | 2022-08-01 09:27:50 +0000 |
commit | 24b7307d9dd686cf12921cb342db8108aa1ce564 (patch) | |
tree | 010cc404d82556eef30a3e05ae031bbf311a6253 /src/drivers | |
parent | b66675d4338fc935e481bb5f77c6bf4f27aedefd (diff) |
drivers/elog: Use format string
clang shows the warning below:
src/drivers/elog/elog.c:171:13: error:
format string is not a string literal
(potentially insecure) [-Werror,-Wformat-security]
elog_debug(msg);
^~~
Found-by: clang (13.0.1)
Change-Id: I3f8949f9ce0c4ef4823530c61c503b0883bb5efc
Signed-off-by: Matei Dibu <matdibu@protonmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66262
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/elog/elog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 37df182a8d..687e68b2f7 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -168,7 +168,7 @@ static void elog_debug_dump_buffer(const char *msg) if (!CONFIG(ELOG_DEBUG)) return; - elog_debug(msg); + elog_debug("%s", msg); rdev = mirror_dev_get(); |