comparison th_network.c @ 181:778647cccb36

Use TH_PRIx_SIZE_T here.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 03 Mar 2015 00:49:43 +0200
parents b4e1b15a64e1
children 2d2a3ed27684
comparison
equal deleted inserted replaced
180:06a375df1787 181:778647cccb36
954 char buf[TH_DUMP_BYTES + 1]; 954 char buf[TH_DUMP_BYTES + 1];
955 size_t bufoffs, amount = left < TH_DUMP_BYTES ? left : TH_DUMP_BYTES; 955 size_t bufoffs, amount = left < TH_DUMP_BYTES ? left : TH_DUMP_BYTES;
956 left -= amount; 956 left -= amount;
957 957
958 // Dump offs | xx xx xx xx | and fill string 958 // Dump offs | xx xx xx xx | and fill string
959 fprintf(f, "%04zx | ", offs); 959 fprintf(f, "%04" TH_PRIx_SIZE_T " | ", offs);
960 for (bufoffs = 0; bufoffs < amount; offs++, bufoffs++, p++) 960 for (bufoffs = 0; bufoffs < amount; offs++, bufoffs++, p++)
961 { 961 {
962 fprintf(f, "%02x ", *p); 962 fprintf(f, "%02x ", *p);
963 buf[bufoffs] = th_isprint(*p) ? *p : '.'; 963 buf[bufoffs] = th_isprint(*p) ? *p : '.';
964 } 964 }