nfp: bpf: correct printk formats for size_t
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 15 Dec 2017 18:39:31 +0000 (10:39 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 15 Dec 2017 21:01:05 +0000 (22:01 +0100)
Build bot reported warning about invalid printk formats on 32bit
architectures.  Use %zu for size_t and %zd ptr diff.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/net/ethernet/netronome/nfp/bpf/main.c

index 7678e687a2b1463a3e56f8522b53a903b2b4da43..4f6553f0117866bc8e742ca57ff8d8fc23cf6b29 100644 (file)
@@ -225,7 +225,7 @@ static int nfp_bpf_parse_capabilities(struct nfp_app *app)
                }
        }
        if (mem - start != nfp_cpp_area_size(area)) {
-               nfp_err(cpp, "BPF capabilities left after parsing, parsed:%lu total length:%lu\n",
+               nfp_err(cpp, "BPF capabilities left after parsing, parsed:%zd total length:%zu\n",
                        mem - start, nfp_cpp_area_size(area));
                goto err_release_free;
        }
@@ -235,7 +235,7 @@ static int nfp_bpf_parse_capabilities(struct nfp_app *app)
        return 0;
 
 err_release_free:
-       nfp_err(cpp, "invalid BPF capabilities at offset:%ld\n", mem - start);
+       nfp_err(cpp, "invalid BPF capabilities at offset:%zd\n", mem - start);
        nfp_cpp_area_release_free(area);
        return -EINVAL;
 }