diff options
author | Lars Ellenberg <lars.ellenberg@linbit.com> | 2011-04-23 18:01:16 -0400 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2012-11-08 10:49:05 -0500 |
commit | ae25b336e0e00eafd61f1cc1c3e9e1c0d2b8fc51 (patch) | |
tree | 89a6abb2db231a0798ae20442e9a6e76ff1e9504 | |
parent | ed439848ca6029c748b537e510a1ed5a506ea123 (diff) |
drbd: cmdname() enum to string convertion was missing a few constants
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_main.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index ba9a8b7afedf..bfea92297f6a 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -3246,8 +3246,17 @@ const char *cmdname(enum drbd_packet cmd) | |||
3246 | [P_DELAY_PROBE] = "DelayProbe", | 3246 | [P_DELAY_PROBE] = "DelayProbe", |
3247 | [P_OUT_OF_SYNC] = "OutOfSync", | 3247 | [P_OUT_OF_SYNC] = "OutOfSync", |
3248 | [P_RETRY_WRITE] = "RetryWrite", | 3248 | [P_RETRY_WRITE] = "RetryWrite", |
3249 | [P_RS_CANCEL] = "RSCancel", | ||
3250 | [P_CONN_ST_CHG_REQ] = "conn_st_chg_req", | ||
3251 | [P_CONN_ST_CHG_REPLY] = "conn_st_chg_reply", | ||
3252 | |||
3253 | /* enum drbd_packet, but not commands - obsoleted flags: | ||
3254 | * P_MAY_IGNORE | ||
3255 | * P_MAX_OPT_CMD | ||
3256 | */ | ||
3249 | }; | 3257 | }; |
3250 | 3258 | ||
3259 | /* too big for the array: 0xfffX */ | ||
3251 | if (cmd == P_INITIAL_META) | 3260 | if (cmd == P_INITIAL_META) |
3252 | return "InitialMeta"; | 3261 | return "InitialMeta"; |
3253 | if (cmd == P_INITIAL_DATA) | 3262 | if (cmd == P_INITIAL_DATA) |