From: Samuel Pitoiset Date: Mon, 30 Jan 2017 10:19:14 +0000 (+0100) Subject: hud: fix compilation warnings in hud_nic_graph_install() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db2b0210b13bffdb0cb0e06fa6f4b9208f66efff;p=mesa.git hud: fix compilation warnings in hud_nic_graph_install() v2: use PRId64 instead of PRIx64 Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/hud/hud_nic.c b/src/gallium/auxiliary/hud/hud_nic.c index f9935dea8b7..634add162b8 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)