diff options
author | Martin Szulecki | 2009-04-02 15:24:48 +0200 |
---|---|---|
committer | Martin Szulecki | 2009-04-02 15:24:48 +0200 |
commit | f725c2a4d44858270feaf3877d443bf6a6c4d3d9 (patch) | |
tree | f3ae998038e16f6667435999f9bec99a1096c0b9 /wii_tmd.c | |
parent | cbcb3c8af0648e8dc595bbcc382423acad9de754 (diff) | |
download | wiiwadtools-f725c2a4d44858270feaf3877d443bf6a6c4d3d9.tar.gz wiiwadtools-f725c2a4d44858270feaf3877d443bf6a6c4d3d9.tar.bz2 |
Remove use of positional parameters in printf() as it does not work on Windows
Diffstat (limited to 'wii_tmd.c')
-rw-r--r-- | wii_tmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -159,7 +159,8 @@ void print_tmd(tmd_header *tmd) { printf("version : %x\n", tmd->version); printf("ca_crl_version : %x\n", tmd->ca_crl_version); printf("signer_crl_version: %x\n", tmd->signer_crl_version); - printf("sys_version : %016llx (IOS%llu)\n", tmd->sys_version, tmd->sys_version & 0xff); + printf("sys_version : %016llx ", tmd->sys_version); + printf("(IOS%llu)\n", tmd->sys_version & 0xff); printf("title_category : %08x (%s)\n", tmd->title_category, tmd_lookup_title_category_name(tmd->title_category)); printf("title_id : %08x ", tmd->title_id); if(tmd->title_category == TITLE_CATEGORY_SYSTEM) { @@ -190,7 +191,7 @@ void print_tmd_content_records(tmd_header *tmd, tmd_content_record *tmd_content) printf("cid : %08x\n", cr->cid); printf("index: %04x\n", cr->index); printf("type : %04x\n", cr->type); - printf("size : %1$016llx (%1$llu)\n", cr->size); + printf("size : %016llx (%llu)\n", cr->size, cr->size); printf("hash : "); for (n = 0; n < 20; n++) printf("%02x", cr->hash[n]); |