diff mbox series

[01/18] lightnvm: pblk: fix warning in pblk_l2p_init()

Message ID 20190314160428.3559-2-igor.j.konopko@intel.com (mailing list archive)
State New, archived
Headers show
Series lightnvm: next set of improvements for 5.2 | expand

Commit Message

Igor Konopko March 14, 2019, 4:04 p.m. UTC
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 <igor.j.konopko@intel.com>
---
 drivers/lightnvm/pblk-init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Javier González March 16, 2019, 10:29 p.m. UTC | #1
> On 14 Mar 2019, at 09.04, Igor Konopko <igor.j.konopko@intel.com> 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 <igor.j.konopko@intel.com>
> ---
> 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;
> 	}
> --
> 2.9.5

Looks food to me.

Reviewed-by: Javier González <javier@javigon.com>
Matias Bjorling March 18, 2019, 4:25 p.m. UTC | #2
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 <igor.j.konopko@intel.com>
> ---
>   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.
diff mbox series

Patch

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;
 	}