diff options
author | Ruben Rodriguez Buchillon <coconutruben@chromium.org> | 2019-08-19 14:39:32 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-08-22 18:21:38 +0000 |
commit | e09f9e5fcd202ec13087135f897be34a987e3cbe (patch) | |
tree | 1a855cef977469c4b91b4aad458280f5023454e1 /extra | |
parent | be490b7261308362c6831ba2804c1504ba6aac15 (diff) | |
download | chrome-ec-e09f9e5fcd202ec13087135f897be34a987e3cbe.tar.gz |
usb_updater2: fix compiler warning
The compiler complained about this, noting that
error: format string is not a string literal (potentially insecure)
[-Werror,-Wformat-security]. This seems to fix it.
BUG=b:120921028
BRANCH=None
TEST=manual testing
sudo emerge ec-devutils -j32
// warning disappears
Change-Id: I4a4392ec7e6bc7af06dc54b6382e52a1f2c91252
Signed-off-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1761467
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'extra')
-rw-r--r-- | extra/usb_updater/usb_updater2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/usb_updater/usb_updater2.c b/extra/usb_updater/usb_updater2.c index c75c679ef7..65c5fd248d 100644 --- a/extra/usb_updater/usb_updater2.c +++ b/extra/usb_updater/usb_updater2.c @@ -1030,7 +1030,7 @@ static void read_console(struct transfer_descriptor *td) break; /* make sure it's null-terminated. */ response[response_size - 1] = 0; - printf((const char *)response); + printf("%s", (const char *)response); } nanosleep(&sleep_duration, NULL); } |