[Mesa-dev] [PATCH v2] hud: fix compilation warnings in hud_nic_graph_install()

Marek Olšák maraeo at gmail.com
Mon Jan 30 12:02:23 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Mon, Jan 30, 2017 at 11:19 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> v2: use PRId64 instead of PRIx64
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/gallium/auxiliary/hud/hud_nic.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/auxiliary/hud/hud_nic.c b/src/gallium/auxiliary/hud/hud_nic.c
> index f9935dea8b..634add162b 100644
> --- a/src/gallium/auxiliary/hud/hud_nic.c
> +++ b/src/gallium/auxiliary/hud/hud_nic.c
> @@ -263,11 +263,11 @@ hud_nic_graph_install(struct hud_pane *pane, const char *nic_name,
>
>     nic->mode = mode;
>     if (nic->mode == NIC_DIRECTION_RX) {
> -      snprintf(gr->name, sizeof(gr->name), "%s-rx-%lldMbps", nic->name,
> +      snprintf(gr->name, sizeof(gr->name), "%s-rx-%"PRId64"Mbps", nic->name,
>           nic->speedMbps);
>     }
>     else if (nic->mode == NIC_DIRECTION_TX) {
> -      snprintf(gr->name, sizeof(gr->name), "%s-tx-%lldMbps", nic->name,
> +      snprintf(gr->name, sizeof(gr->name), "%s-tx-%"PRId64"Mbps", nic->name,
>           nic->speedMbps);
>     }
>     else if (nic->mode == NIC_RSSI_DBM)
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list