bufsize is an unsigned integer, make it so for debug.