Fixed format error
[platform/core/connectivity/net-config.git] / gtest / netstat.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 01af513..96a276c
@@ -35,7 +35,7 @@ NetStat::~NetStat()
 
 error_e NetStat::GetWifiTotalTxBytes(void)
 {
-       uint64_t tx_bytes = 0;
+       unsigned long long tx_bytes = 0;
        GVariant *message = NULL;
        error_e error = ERROR_NONE;
 
@@ -54,14 +54,14 @@ error_e NetStat::GetWifiTotalTxBytes(void)
        g_variant_get(message, "(t)", &tx_bytes);
        g_variant_unref(message);
 
-       GLOGD("Succeeded to get wifi total tx bytes %d", tx_bytes);
+       GLOGD("Succeeded to get wifi total tx bytes %llu", tx_bytes);
 
        return ERROR_NONE;
 }
 
 error_e NetStat::GetWifiTotalRxBytes(void)
 {
-       uint64_t rx_bytes = 0;
+       unsigned long long rx_bytes = 0;
        GVariant *message = NULL;
        error_e error = ERROR_NONE;
 
@@ -80,14 +80,14 @@ error_e NetStat::GetWifiTotalRxBytes(void)
        g_variant_get(message, "(t)", &rx_bytes);
        g_variant_unref(message);
 
-       GLOGD("Succeeded to get wifi total rx bytes %d", rx_bytes);
+       GLOGD("Succeeded to get wifi total rx bytes %llu", rx_bytes);
 
        return ERROR_NONE;
 }
 
 error_e NetStat::GetWifiLastTxBytes(void)
 {
-       uint64_t tx_bytes = 0;
+       unsigned long long tx_bytes = 0;
        GVariant *message = NULL;
        error_e error = ERROR_NONE;
 
@@ -106,14 +106,14 @@ error_e NetStat::GetWifiLastTxBytes(void)
        g_variant_get(message, "(t)", &tx_bytes);
        g_variant_unref(message);
 
-       GLOGD("Succeeded to get wifi last tx bytes %d", tx_bytes);
+       GLOGD("Succeeded to get wifi last tx bytes %llu", tx_bytes);
 
        return ERROR_NONE;
 }
 
 error_e NetStat::GetWifiLastRxBytes(void)
 {
-       uint64_t rx_bytes = 0;
+       unsigned long long rx_bytes = 0;
        GVariant *message = NULL;
        error_e error = ERROR_NONE;
 
@@ -132,7 +132,7 @@ error_e NetStat::GetWifiLastRxBytes(void)
        g_variant_get(message, "(t)", &rx_bytes);
        g_variant_unref(message);
 
-       GLOGD("Succeeded to get wifi last rx bytes %d", rx_bytes);
+       GLOGD("Succeeded to get wifi last rx bytes %llu", rx_bytes);
 
        return ERROR_NONE;
 }