Use %zd for size_t variables in printf statements.