From 77bd29331f57d7f7d8bc5f813a1b4ced107b2f78 Mon Sep 17 00:00:00 2001 From: saerome kim Date: Fri, 7 Dec 2018 16:16:39 +0900 Subject: [PATCH] Fixed build error The guint64 format is changed by G_GUINT64_FORMAT regardless of the each CPU architecture. Change-Id: If84b7b86474f3ea3abce0f54781b94995be255e0 Signed-off-by: saerome kim --- packaging/capi-network-wifi-mesh.spec | 2 +- src/wifi-mesh-dbus.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packaging/capi-network-wifi-mesh.spec b/packaging/capi-network-wifi-mesh.spec index 7ba8dda..12e78b0 100644 --- a/packaging/capi-network-wifi-mesh.spec +++ b/packaging/capi-network-wifi-mesh.spec @@ -1,6 +1,6 @@ %define major 0 %define minor 1 -%define patchlevel 1 +%define patchlevel 2 Name: capi-network-wifi-mesh Version: %{major}.%{minor}.%{patchlevel} diff --git a/src/wifi-mesh-dbus.c b/src/wifi-mesh-dbus.c index 1937127..c933ca2 100644 --- a/src/wifi-mesh-dbus.c +++ b/src/wifi-mesh-dbus.c @@ -1817,13 +1817,13 @@ int _wifi_mesh_get_stations_info(wifi_mesh_h handle, LOGE("inactive_time = %d", station.inactive_time); } else if (strcasecmp(key, "rx_bytes") == 0) { station.rx_bytes = g_variant_get_uint64(val); - LOGE("rx_bytes = %llu", station.rx_bytes); + LOGE("rx_bytes = %" G_GUINT64_FORMAT, station.rx_bytes); } else if (strcasecmp(key, "rx_packets") == 0) { station.rx_packets = g_variant_get_uint32(val); LOGE("rx_packets = %d", station.rx_packets); } else if (strcasecmp(key, "tx_bytes") == 0) { station.tx_bytes = g_variant_get_uint64(val); - LOGE("tx_bytes = %llu", station.tx_bytes); + LOGE("tx_bytes = %" G_GUINT64_FORMAT, station.tx_bytes); } else if (strcasecmp(key, "tx_packets") == 0) { station.tx_packets = g_variant_get_uint32(val); LOGE("rx_packets = %d", station.tx_packets); @@ -1838,10 +1838,10 @@ int _wifi_mesh_get_stations_info(wifi_mesh_h handle, LOGE("beacon_loss = %d", station.beacon_loss); } else if (strcasecmp(key, "beacon_rx") == 0) { station.beacon_rx = g_variant_get_uint64(val); - LOGE("beacon_rx = %llu", station.beacon_rx); + LOGE("beacon_rx = %" G_GUINT64_FORMAT, station.beacon_rx); } else if (strcasecmp(key, "rx_drop_misc") == 0) { station.rx_drop_misc = g_variant_get_uint64(val); - LOGE("rx_drop_misc = %llu", station.rx_drop_misc); + LOGE("rx_drop_misc = %" G_GUINT64_FORMAT, station.rx_drop_misc); } else if (strcasecmp(key, "signal") == 0) { station.signal = g_variant_get_int32(val); LOGE("signal = %d", station.signal); -- 2.34.1