Commit 281f283bbc0b12c8e68c389a23d9b6f350ede448

Thomas de Grivel 2024-08-01T17:31:31

error reporting

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/libkc3/buf_fd.c b/libkc3/buf_fd.c
index e1369a3..529b923 100644
--- a/libkc3/buf_fd.c
+++ b/libkc3/buf_fd.c
@@ -76,11 +76,14 @@ sw buf_fd_open_r_refill (s_buf *buf)
   }
   if (avail < 0) {
     err_write_1("buf_fd_open_r_refill: avail: ");
-    err_inspect_s32(&avail);
+    err_inspect_s32_decimal(&avail);
     return -1;
   }
-  if (! avail)
+  if (! avail) {
+    err_write_1("buf_fd_open_r_refill: avail: ");
+    err_inspect_s32_decimal(&avail);
     return 0;
+  }
   if ((uw) avail > size)
     avail = size;
   r = read(fd, buf->ptr.pchar + buf->wpos, avail);