Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a01842eb authored by Philipp Reisner's avatar Philipp Reisner
Browse files

drbd: Log failures of connection state changes

parent e8cdc343
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1730,7 +1730,13 @@ _conn_request_state(struct drbd_tconn *tconn, union drbd_state mask, union drbd_
		conn_err(tconn, "Could not kmalloc an acscw\n");
	}

	return rv;
 abort:
	if (flags & CS_VERBOSE) {
		conn_err(tconn, "State change failed: %s\n", drbd_set_st_err_str(rv));
		conn_err(tconn, " state = { cs:%s }\n", drbd_conn_str(oc));
		conn_err(tconn, "wanted = { cs:%s }\n", drbd_conn_str(val.conn));
	}
	return rv;
}