Fixed nnz count
@@ -64,7 +64,7 @@ void print_setup_header(const OSQPWorkspace *work) {
settings = work->settings;
// Number of nonzeros
- nnz = data->P->nzmax + data->A->p[data->A->n];
+ nnz = data->P->p[data->P->n] + data->A->p[data->A->n];
print_line();
c_print(" OSQP v%s - Operator Splitting QP Solver\n"
