From c0bff521579f62d1616ff40b53a5ea6fc7c60699 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 18 Feb 2022 22:50:16 +0000 Subject: [PATCH] dvd-sector-copy.c: Fix formatting for `ssize_t'. --- dvd-sector-copy.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dvd-sector-copy.c b/dvd-sector-copy.c index 908bbbc..a2cf9c6 100644 --- a/dvd-sector-copy.c +++ b/dvd-sector-copy.c @@ -592,7 +592,7 @@ static ssize_t recovery_read(struct recoverybuf *r, #endif n = recovery_read_sectors(r, pos, pp, nn); #ifdef DEBUG - printf(" -> %ld\n", n); + printf(" -> %zd\n", n); #endif if (n != nn) { if (n > want) n = want; @@ -613,7 +613,7 @@ fflush(stdout); #endif n = recovery_read_sectors(r, pos, pp, nn); #ifdef DEBUG - printf(" -> %ld\n", n); + printf(" -> %zd\n", n); #endif if (n > 0) { r->end += n; @@ -628,7 +628,7 @@ fflush(stdout); end: #ifdef DEBUG - show_recovery_buffer_map(r, "done; return %ld", n); + show_recovery_buffer_map(r, "done; return %zd", n); #endif return (n); } @@ -661,7 +661,7 @@ static ssize_t find_good_sector(secaddr *pos_inout, secaddr end, n = recovery_read(&r, pos, want); #ifdef DEBUG clear_progress(); - printf(";; [retry] try reading %"PRIuSEC" .. %"PRIuSEC" -> %ld\n", + printf(";; [retry] try reading %"PRIuSEC" .. %"PRIuSEC" -> %zd\n", pos, pos + want, n); #endif if (n > 0) { @@ -685,7 +685,7 @@ static ssize_t find_good_sector(secaddr *pos_inout, secaddr end, n = recovery_read(&r, pos, want); #ifdef DEBUG clear_progress(); - printf(";; [bound] try reading %"PRIuSEC" .. %"PRIuSEC" -> %ld\n", + printf(";; [bound] try reading %"PRIuSEC" .. %"PRIuSEC" -> %zd\n", pos, pos + want, n); #endif if (n == want) break; @@ -702,7 +702,7 @@ static ssize_t find_good_sector(secaddr *pos_inout, secaddr end, n = recovery_read(&r, pos, want); #ifdef DEBUG clear_progress(); - printf(";; [limit] try reading %"PRIuSEC" .. %"PRIuSEC" -> %ld\n", + printf(";; [limit] try reading %"PRIuSEC" .. %"PRIuSEC" -> %zd\n", pos, pos + want, n); #endif if (n < 0) n = 0; -- 2.11.0