MonetDB: leftmart - silence some compilers compaining about prin...

Stefan Manegold Stefan.Manegold at cwi.nl
Mon Mar 7 14:55:12 CET 2016


Hi Lefteris,

the portable format string that we ussually use for size_t in MonetDB is "SZFMT"

Best,
Stefan

----- On Mar 7, 2016, at 2:38 PM, lsidir commits+lsidir=cwi.nl at monetdb.org wrote:

> Changeset: a76605fb0b33 for MonetDB
> URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a76605fb0b33
> Modified Files:
>	gdk/gdk_bloom.c
> Branch: leftmart
> Log Message:
> 
> silence some compilers compaining about printing a size_t as unsigned int or
> long
> 
> 
> diffs (12 lines):
> 
> diff --git a/gdk/gdk_bloom.c b/gdk/gdk_bloom.c
> --- a/gdk/gdk_bloom.c
> +++ b/gdk/gdk_bloom.c
> @@ -183,7 +183,7 @@ BATbloom(BAT *b)
> 
> 		ALGODEBUG fprintf(stderr, "#BATbloom(b=%s#" BUNFMT ") %s: "
> 				"create bloom filter: mbits = " BUNFMT ", ratio = " BUNFMT
> -				", kfunc = %d, bytes = " BUNFMT "\n", BATgetId(b),
> +				", kfunc = %d, bytes = %lu\n", BATgetId(b),
> 				BATcount(b), b->T->heap.filename,
> 				bloom->mbits,  bloom->mbits/BATcount(b),
> 				bloom->kfunc, bloom->bytes);
> _______________________________________________
> checkin-list mailing list
> checkin-list at monetdb.org
> https://www.monetdb.org/mailman/listinfo/checkin-list

-- 
| Stefan.Manegold at CWI.nl | DB Architectures   (DA) |
| www.CWI.nl/~manegold/  | Science Park 123 (L321) |
| +31 (0)20 592-4212     | 1098 XG Amsterdam  (NL) |


More information about the developers-list mailing list