]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
macOS: compiler warnings
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 29 Oct 2024 19:31:06 +0000 (20:31 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 29 Oct 2024 19:31:06 +0000 (20:31 +0100)
Debug traces in vgdb.

coregrind/vgdb.c

index f05a766e8cb8fa8da5f8c7db80834bdba6b7005d..786ead160d3413a87e1babf7a5d2cdcf3012a4b5 100644 (file)
@@ -441,8 +441,8 @@ Bool write_buf(int fd, const char* buf, size_t size, const char* desc,
 {
    size_t nrwritten;
    ssize_t nrw;
-   DEBUG(2, "writing %s len %d %.*s notify: %d\n", desc, size,
-         size, buf, notify);
+   DEBUG(2, "writing %s len %zu %.*s notify: %d\n", desc, size,
+         (int)size, buf, notify);
    nrwritten = 0;
    while (nrwritten < size) {
       nrw = write(fd, buf+nrwritten, size - nrwritten);