]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
platform/chrome: cros_ec_dev - fix Unknown escape '%' warning
authorOlof Johansson <olofj@chromium.org>
Tue, 3 Mar 2015 12:22:32 +0000 (13:22 +0100)
committerOlof Johansson <olof@lixom.net>
Wed, 4 Mar 2015 19:23:10 +0000 (11:23 -0800)
Fix the following sparse warning:

    drivers/platform/chrome/cros_ec_dev.c:64:45: sparse: Unknown escape '%'

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Olof Johansson <olofj@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/platform/chrome/cros_ec_dev.c

index ce714317a59eb48968088a736b5972777b775a6a..6090d0b2826fa1b9502ed47b87f10f9dd9a06a08 100644 (file)
@@ -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))
                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,
                 current_image_name[resp->current_image]);