summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-12-17 18:58:22 -0600
committerDenis Kenzior <denkenz@gmail.com>2009-12-17 21:45:38 -0600
commitf74b300a495959af8b3ae912d993fd16029f92b7 (patch)
treeced1a966f30af83384b465a4942677486fbda5a7
parent5fb5a2ceeaa6d0a9b5793ecca57a53f3599af724 (diff)
downloadofono-f74b300a495959af8b3ae912d993fd16029f92b7.tar.bz2
Fix: Use capitals for hex-encoded pdus
-rw-r--r--drivers/atmodem/sim.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c
index 54284d81..6cdbce18 100644
--- a/drivers/atmodem/sim.c
+++ b/drivers/atmodem/sim.c
@@ -272,7 +272,7 @@ static void at_sim_update_binary(struct ofono_sim *sim, int fileid,
start >> 8, start & 0xff, length);
for (; length; length--)
- len += sprintf(buf + len, "%02hhx", *value++);
+ len += sprintf(buf + len, "%02hhX", *value++);
ret = g_at_chat_send(sd->chat, buf, crsm_prefix,
at_crsm_update_cb, cbd, g_free);
@@ -306,7 +306,7 @@ static void at_sim_update_record(struct ofono_sim *sim, int fileid,
record, length);
for (; length; length--)
- len += sprintf(buf + len, "%02hhx", *value++);
+ len += sprintf(buf + len, "%02hhX", *value++);
ret = g_at_chat_send(sd->chat, buf, crsm_prefix,
at_crsm_update_cb, cbd, g_free);
@@ -338,7 +338,7 @@ static void at_sim_update_cyclic(struct ofono_sim *sim, int fileid,
len = sprintf(buf, "AT+CRSM=220,%i,0,3,%i,", fileid, length);
for (; length; length--)
- len += sprintf(buf + len, "%02hhx", *value++);
+ len += sprintf(buf + len, "%02hhX", *value++);
ret = g_at_chat_send(sd->chat, buf, crsm_prefix,
at_crsm_update_cb, cbd, g_free);
@@ -756,11 +756,11 @@ static void at_sim_envelope(struct ofono_sim *sim, int length,
if (!cbd || !buf)
goto error;
- len = sprintf(buf, "AT+CSIM=%i,a0c20000%02hhx",
+ len = sprintf(buf, "AT+CSIM=%i,A0C20000%02hhX",
12 + length * 2, length);
for (; length; length--)
- len += sprintf(buf + len, "%02hhx", *command++);
+ len += sprintf(buf + len, "%02hhX", *command++);
sprintf(buf + len, "00");
ret = g_at_chat_send(sd->chat, buf, crsm_prefix,