Switch to %zd for logging size_t values.