From: Lars Ellenberg Date: Wed, 3 Mar 2010 01:44:11 +0000 (+0100) Subject: drbd: add missing drbd command names to avoid in error messages X-Git-Tag: MMI-PSA29.97-13-9~24157^2~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c42b6cf4b38c9726d4b46c48d04197c9ca74d773;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drbd: add missing drbd command names to avoid in error messages cmdname() should map command number to its human readable representation. The string table was incomplete, though. Maybe rather do a switch() block, and let the compiler help us to keep it complete? Signed-off-by: Philipp Reisner Signed-off-by: Lars Ellenberg --- diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index 1aae724e37fb..844206c31851 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -261,6 +261,9 @@ static inline const char *cmdname(enum drbd_packets cmd) [P_OV_REQUEST] = "OVRequest", [P_OV_REPLY] = "OVReply", [P_OV_RESULT] = "OVResult", + [P_CSUM_RS_REQUEST] = "CsumRSRequest", + [P_RS_IS_IN_SYNC] = "CsumRSIsInSync", + [P_COMPRESSED_BITMAP] = "CBitmap", [P_MAX_CMD] = NULL, };