1.1 --- a/src/wd2010.c Wed Mar 13 00:43:25 2013 +0000 1.2 +++ b/src/wd2010.c Thu Apr 11 09:18:31 2013 +0100 1.3 @@ -239,7 +239,7 @@ 1.4 if (ctx->cmd_has_drq) { 1.5 temp = ctx->status & ~(SR_BUSY & SR_DRQ); 1.6 temp |= (ctx->data_pos < ctx->data_len) ? SR_DRQ : 0; 1.7 - LOG("\tWDFDC rd sr, has drq, pos=%lu len=%lu, sr=0x%02X", ctx->data_pos, ctx->data_len, temp); 1.8 + LOG("\tWDFDC rd sr, has drq, pos=%zu len=%zu, sr=0x%02X", ctx->data_pos, ctx->data_len, temp); 1.9 } else { 1.10 temp = ctx->status & ~0x80; 1.11 } 1.12 @@ -379,13 +379,13 @@ 1.13 lba = (((ctx->track * ctx->geom_heads * ctx->geom_spt) + (ctx->head * ctx->geom_spt) + ctx->sector) + i); 1.14 // convert LBA to byte address 1.15 lba *= ctx->geom_secsz; 1.16 - LOG("\tREAD lba = %lu", lba); 1.17 + LOG("\tREAD lba = %zu", lba); 1.18 1.19 // Read the sector from the file 1.20 fseek(ctx->disc_image, lba, SEEK_SET); 1.21 // TODO: check fread return value! if < secsz, BAIL! (call it a crc error or secnotfound maybe? also log to stderr) 1.22 ctx->data_len += fread(&ctx->data[ctx->data_len], 1, ctx->geom_secsz, ctx->disc_image); 1.23 - LOG("\tREAD len=%lu, pos=%lu, ssz=%d", ctx->data_len, ctx->data_pos, ctx->geom_secsz); 1.24 + LOG("\tREAD len=%zu, pos=%zu, ssz=%d", ctx->data_len, ctx->data_pos, ctx->geom_secsz); 1.25 } 1.26 1.27 ctx->status = 0;