aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Reisner <philipp.reisner@linbit.com>2012-08-28 05:46:22 -0400
committerPhilipp Reisner <philipp.reisner@linbit.com>2012-11-09 08:08:24 -0500
commit4ae98b4db3d0e9336d0b771636b7d053a1460805 (patch)
tree00f409c059b6f910911df3a975c2a81e0be7e99e
parent797020117761eee21ef284cea90c51c690fca169 (diff)
drbd: Imporve the error reporting of failed conn state changes
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
-rw-r--r--drivers/block/drbd/drbd_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c
index a16278cde3db..c3ec578918f2 100644
--- a/drivers/block/drbd/drbd_state.c
+++ b/drivers/block/drbd/drbd_state.c
@@ -1834,8 +1834,8 @@ _conn_request_state(struct drbd_tconn *tconn, union drbd_state mask, union drbd_
1834 } 1834 }
1835 if (rv < SS_SUCCESS && flags & CS_VERBOSE) { 1835 if (rv < SS_SUCCESS && flags & CS_VERBOSE) {
1836 conn_err(tconn, "State change failed: %s\n", drbd_set_st_err_str(rv)); 1836 conn_err(tconn, "State change failed: %s\n", drbd_set_st_err_str(rv));
1837 conn_err(tconn, " state = { cs:%s }\n", drbd_conn_str(oc)); 1837 conn_err(tconn, " mask = 0x%x val = 0x%x\n", mask.i, val.i);
1838 conn_err(tconn, "wanted = { cs:%s }\n", drbd_conn_str(val.conn)); 1838 conn_err(tconn, " old_conn:%s wanted_conn:%s\n", drbd_conn_str(oc), drbd_conn_str(val.conn));
1839 } 1839 }
1840 return rv; 1840 return rv;
1841} 1841}