Commit ef59c25d authored by Olof Johansson's avatar Olof Johansson Committed by Olof Johansson

platform/chrome: cros_ec_dev - fix Unknown escape '%' warning

Fix the following sparse warning:

    drivers/platform/chrome/cros_ec_dev.c:64:45: sparse: Unknown escape '%'
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarOlof Johansson <olofj@chromium.org>
Reviewed-by: default avatarGwendal Grignou <gwendal@chromium.org>
Signed-off-by: default avatarJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent f3f837e5
...@@ -61,7 +61,7 @@ static int ec_get_version(struct cros_ec_device *ec, char *str, int maxlen) ...@@ -61,7 +61,7 @@ static int ec_get_version(struct cros_ec_device *ec, char *str, int maxlen)
if (resp->current_image >= ARRAY_SIZE(current_image_name)) if (resp->current_image >= ARRAY_SIZE(current_image_name))
resp->current_image = 3; /* invalid */ resp->current_image = 3; /* invalid */
snprintf(str, maxlen, "%s\n%s\n%s\n\%s\n", CROS_EC_DEV_VERSION, snprintf(str, maxlen, "%s\n%s\n%s\n%s\n", CROS_EC_DEV_VERSION,
resp->version_string_ro, resp->version_string_rw, resp->version_string_ro, resp->version_string_rw,
current_image_name[resp->current_image]); current_image_name[resp->current_image]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment