summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-02 00:34:29 +0200
committerGravatar Martin Szulecki2014-10-02 00:34:29 +0200
commitd5014bb39101e94c4025d61fae9725489102da3f (patch)
tree1b52b9ffadf64aa115b4f430ba09f09be0636872
parent24fc01d42b71bbe20c1711d4beeba996e9dc18f9 (diff)
downloadlibirecovery-d5014bb39101e94c4025d61fae9725489102da3f.tar.gz
libirecovery-d5014bb39101e94c4025d61fae9725489102da3f.tar.bz2
irecovery: Improve printing of hex values for /deviceinfo command
-rw-r--r--tools/irecovery.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/irecovery.c b/tools/irecovery.c
index f3f7f39..9c153d8 100644
--- a/tools/irecovery.c
+++ b/tools/irecovery.c
@@ -134,13 +134,13 @@ static void parse_command(irecv_client_t client, unsigned char* command, unsigne
const struct irecv_device_info *devinfo = irecv_get_device_info(client);
if (devinfo) {
- printf("CPID: %x\n", devinfo->cpid);
- printf("CPRV: %x\n", devinfo->cprv);
- printf("BDID: %x\n", devinfo->bdid);
+ printf("CPID: %04x\n", devinfo->cpid);
+ printf("CPRV: %02x\n", devinfo->cprv);
+ printf("BDID: %02x\n", devinfo->bdid);
printf("ECID: " _FMT_lld "\n", devinfo->ecid);
- printf("CPFM: %x\n", devinfo->cpfm);
- printf("SCEP: %x\n", devinfo->scep);
- printf("IBFL: %x\n", devinfo->ibfl);
+ printf("CPFM: %02x\n", devinfo->cpfm);
+ printf("SCEP: %02x\n", devinfo->scep);
+ printf("IBFL: %02x\n", devinfo->ibfl);
printf("SRNM: %s\n", (devinfo->srnm) ? devinfo->srnm : "N/A");
printf("IMEI: %s\n", (devinfo->imei) ? devinfo->imei : "N/A");
} else {