Fix printf-related warnings

The correct format specifier for variables of type size_t is not %d
but %zu.