From ae47a6f4fa4af9495dd907a4beb7d1fc2c137fe3 Mon Sep 17 00:00:00 2001 From: Greg V Date: Fri, 4 Oct 2019 02:49:20 +0300 Subject: ec/google/chromeec: fix format security warning Change-Id: I7a7bcb56523d595e8d4f32849aac53d66d416a12 Signed-off-by: Greg V Reviewed-on: https://review.coreboot.org/c/coreboot/+/35866 Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) --- src/ec/google/chromeec/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ec') diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 1b0f7eee03..7c294b66c8 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -1063,7 +1063,7 @@ static void google_chromeec_log_uptimeinfo(void) if ((cmd_resp.ec_reset_flags & (1 << flag)) != 0) { if (flag_count) printk(BIOS_DEBUG, " | "); - printk(BIOS_DEBUG, reset_flag_strings[flag]); + printk(BIOS_DEBUG, "%s", reset_flag_strings[flag]); flag_count++; } } -- cgit v1.2.3