summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2013-01-22 17:17:31 +0100
committerAleksander Morgado <aleksander@lanedo.com>2013-01-22 17:17:31 +0100
commit9e60ef6c0f3e6ac579fb360481488c5ed00382cc (patch)
tree264826e2f7911a25ea42bb5facd7d65808bed525
parenta5631ead919b4a1b37711272c42bcb927e865955 (diff)
cli,nas: fix 2 or 3 digit MNC printing in several actions
https://bugs.freedesktop.org/show_bug.cgi?id=59664
-rw-r--r--cli/qmicli-nas.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/qmicli-nas.c b/cli/qmicli-nas.c
index 3474929..73e4aed 100644
--- a/cli/qmicli-nas.c
+++ b/cli/qmicli-nas.c
@@ -1098,7 +1098,7 @@ get_system_info_ready (QmiClientNas *client,
g_print ("\t\tPacket zone: '%" G_GUINT16_FORMAT "'\n", packet_zone);
if (network_id_valid) {
g_print ("\t\tMCC: '%s'\n", mcc);
- if (mnc[2] == 0xFF)
+ if ((guchar)mnc[2] == 0xFF)
g_print ("\t\tMNC: '%.2s'\n", mnc);
else
g_print ("\t\tMNC: '%.3s'\n", mnc);
@@ -1268,7 +1268,7 @@ get_system_info_ready (QmiClientNas *client,
registration_reject_cause);
if (network_id_valid) {
g_print ("\t\tMCC: '%s'\n", mcc);
- if (mnc[2] == 0xFF)
+ if ((guchar)mnc[2] == 0xFF)
g_print ("\t\tMNC: '%.2s'\n", mnc);
else
g_print ("\t\tMNC: '%.3s'\n", mnc);
@@ -1388,7 +1388,7 @@ get_system_info_ready (QmiClientNas *client,
registration_reject_cause);
if (network_id_valid) {
g_print ("\t\tMCC: '%s'\n", mcc);
- if (mnc[2] == 0xFF)
+ if ((guchar)mnc[2] == 0xFF)
g_print ("\t\tMNC: '%.2s'\n", mnc);
else
g_print ("\t\tMNC: '%.3s'\n", mnc);
@@ -1502,7 +1502,7 @@ get_system_info_ready (QmiClientNas *client,
registration_reject_cause);
if (network_id_valid) {
g_print ("\t\tMCC: '%s'\n", mcc);
- if (mnc[2] == 0xFF)
+ if ((guchar)mnc[2] == 0xFF)
g_print ("\t\tMNC: '%.2s'\n", mnc);
else
g_print ("\t\tMNC: '%.3s'\n", mnc);
@@ -1623,7 +1623,7 @@ get_system_info_ready (QmiClientNas *client,
registration_reject_cause);
if (network_id_valid) {
g_print ("\t\tMCC: '%s'\n", mcc);
- if (mnc[2] == 0xFF)
+ if ((guchar)mnc[2] == 0xFF)
g_print ("\t\tMNC: '%.2s'\n", mnc);
else
g_print ("\t\tMNC: '%.3s'\n", mnc);