Re: [PATCH] tc: fix warning and coding style

From: Geert Uytterhoeven
Date: Tue Sep 30 2014 - 08:28:51 EST


Hi Thibaut,

On Tue, Sep 30, 2014 at 2:16 PM, Thibaut Robert
<thibaut.robert@xxxxxxxxx> wrote:
> Fix gcc warning:
> warning: format â%dâ expects argument of type âintâ, but argument 4 has type âresource_size_tâ [-Wformat=]
>
> As resource_size_t can be 32 or 64 bits (depending on CONFIG_RESOURCES_64BIT), this patch uses "%lld" format along with a cast to u64 for printing resource_size_t values

Please use %pR instead (cfr. Documentation/printk-formats.txt).

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/