MonetDB: Jul2021 - Use correct printf format.

2021-11-10 Thread Sjoerd Mullender
Changeset: 9706b16b3ffa for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/9706b16b3ffa
Modified Files:
gdk/gdk_bbp.c
Branch: Jul2021
Log Message:

Use correct printf format.


diffs (26 lines):

diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -1773,11 +1773,11 @@ BBPdir_step(bat bid, BUN size, int n, ch
}
}
if (!found) {
-   TRC_WARNING(GDK, "file %s not 
found (expected size %zu)\n", fname, free);
+   TRC_WARNING(GDK, "file %s not 
found (expected size %" PRIu64 ")\n", fname, free);
} else {
assert((uint64_t) stb.st_size 
>= free);
if ((uint64_t) stb.st_size < 
free)
-   TRC_WARNING(GDK, "file 
%s too small (expected %zu, actual %zu)\n", fname, free, (size_t) stb.st_size);
+   TRC_WARNING(GDK, "file 
%s too small (expected %" PRIu64 ", actual %zu)\n", fname, free, (size_t) 
stb.st_size);
}
GDKfree(fname);
if (vfree == 0)
@@ -1805,7 +1805,7 @@ BBPdir_step(bat bid, BUN size, int n, ch
}
assert((uint64_t) stb.st_size >= vfree);
if ((uint64_t) stb.st_size < vfree)
-   TRC_WARNING(GDK, "file %s too 
small (expected %zu, actual %zu)\n", fname, vfree, (size_t) stb.st_size);
+   TRC_WARNING(GDK, "file %s too 
small (expected %" PRIu64 ", actual %zu)\n", fname, vfree, (size_t) 
stb.st_size);
GDKfree(fname);
break;
}
___
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list


MonetDB: Jul2021 - Use correct printf format.

2021-08-04 Thread Sjoerd Mullender
Changeset: e8a281ef666d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e8a281ef666d
Modified Files:
common/stream/bs2.c
Branch: Jul2021
Log Message:

Use correct printf format.


diffs (21 lines):

diff --git a/common/stream/bs2.c b/common/stream/bs2.c
--- a/common/stream/bs2.c
+++ b/common/stream/bs2.c
@@ -351,7 +351,7 @@ bs2_read(stream *restrict ss, void *rest
return -1;
}
 #ifdef BSTREAM_DEBUG
-   fprintf(stderr, "R1 '%s' length: %lld, final: %s\n", ss->name, 
blksize >> 1, blksize & 1 ? "true" : "false");
+   fprintf(stderr, "R1 '%s' length: %" PRId64 ", final: %s\n", 
ss->name, blksize >> 1, blksize & 1 ? "true" : "false");
 #endif
s->itotal = (size_t) (blksize >> 1);/* amount readable */
/* store whether this was the last block or not */
@@ -431,7 +431,7 @@ bs2_read(stream *restrict ss, void *rest
return -1;
}
 #ifdef BSTREAM_DEBUG
-   fprintf(stderr, "R3 '%s' length: %lld, final: %s\n", 
ss->name, blksize >> 1, blksize & 1 ? "true" : "false");
+   fprintf(stderr, "R3 '%s' length: %" PRId64 ", final: 
%s\n", ss->name, blksize >> 1, blksize & 1 ? "true" : "false");
 #endif
 
 
___
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list