On 3/14/19 9:04 AM, Igor Konopko wrote:
This patch fixes a compilation warning caused by improper format
specifier provided in pblk_l2p_init().

Fixes: fe0c220 ("lightnvm: pblk: cleanly fail when there is not enough memory")
Signed-off-by: Igor Konopko <[email protected]>
---
  drivers/lightnvm/pblk-init.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c
index 1940f89..1e227a0 100644
--- a/drivers/lightnvm/pblk-init.c
+++ b/drivers/lightnvm/pblk-init.c
@@ -159,7 +159,7 @@ static int pblk_l2p_init(struct pblk *pblk, bool 
factory_init)
                                        | __GFP_RETRY_MAYFAIL | __GFP_HIGHMEM,
                                        PAGE_KERNEL);
        if (!pblk->trans_map) {
-               pblk_err(pblk, "failed to allocate L2P (need %ld of memory)\n",
+               pblk_err(pblk, "failed to allocate L2P (need %zu of memory)\n",
                                map_size);
                return -ENOMEM;
        }


Thanks Igor. I pulled it into the original patch.

Reply via email to