OSDN Git Service

Fix bug 1687659 - cell id in reference ril.
authorJohn Wang <johnwang@google.com>
Tue, 30 Jun 2009 20:12:53 +0000 (13:12 -0700)
committerJohn Wang <johnwang@google.com>
Tue, 30 Jun 2009 20:12:53 +0000 (13:12 -0700)
The LAC and CID of RIL_REQUEST_REGISTRATION_STATE should be in the hex format. The valid LAC are from 0x0000 to 0xffff and Valid CID are from 0x00000000 to 0xffffffff. reference-ril should return hex value instead of decimal one.

modified:   reference-ril/reference-ril.c

reference-ril/reference-ril.c

index d6bd09d..8470a63 100644 (file)
@@ -816,8 +816,8 @@ static void requestRegistrationState(int request, void *data,
     }
 
     asprintf(&responseStr[0], "%d", response[0]);
-    asprintf(&responseStr[1], "%d", response[1]);
-    asprintf(&responseStr[2], "%d", response[2]);
+    asprintf(&responseStr[1], "%x", response[1]);
+    asprintf(&responseStr[2], "%x", response[2]);
 
     if (count > 3)
         asprintf(&responseStr[3], "%d", response[3]);