misc: fs_loader: Fix compiler warning
authorKeerthy <j-keerthy@ti.com>
Mon, 5 Nov 2018 06:04:54 +0000 (11:34 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:52:01 +0000 (16:52 -0500)
Fix compiler warning

drivers/misc/fs_loader.c:193:9: warning: format ‘%d’ expects
argument of type ‘int’, but argument 5 has type ‘size_t
{aka long unsigned int}’ [-Wformat=]

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/misc/fs_loader.c

index 5afc941affde4df8da6934e6d78db206a89fafb9..baa5f8302aeb8c050cbbdacf819fc3e02e095e8d 100644 (file)
@@ -190,7 +190,7 @@ static int fw_get_filesystem_firmware(struct device_platdata *plat,
                        fw_priv->offset, firmware->size, &actread);
 
        if (ret) {
-               debug("Error: %d Failed to read %s from flash %lld != %d.\n",
+               debug("Error: %d Failed to read %s from flash %lld != %zu.\n",
                      ret, fw_priv->name, actread, firmware->size);
        } else {
                ret = actread;