chiark / gitweb /
dvd-sector-copy.c: Fix formatting for `ssize_t'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 18 Feb 2022 22:50:16 +0000 (22:50 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 18 Feb 2022 22:50:16 +0000 (22:50 +0000)
dvd-sector-copy.c

index 908bbbc02633959b9f82224e5aee9cb13b4ae1de..a2cf9c689ea81d5cc8cdd9a0d3efaa2533c3d7c7 100644 (file)
@@ -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;