aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/debug.c')
-rw-r--r--net/sctp/debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sctp/debug.c b/net/sctp/debug.c
index 2e47eb2f05cb..3f619fdcbf0a 100644
--- a/net/sctp/debug.c
+++ b/net/sctp/debug.c
@@ -60,7 +60,7 @@ static const char *const sctp_cid_tbl[SCTP_NUM_BASE_CHUNK_TYPES] = {
60}; 60};
61 61
62/* Lookup "chunk type" debug name. */ 62/* Lookup "chunk type" debug name. */
63const char *sctp_cname(const sctp_subtype_t cid) 63const char *sctp_cname(const union sctp_subtype cid)
64{ 64{
65 if (cid.chunk <= SCTP_CID_BASE_MAX) 65 if (cid.chunk <= SCTP_CID_BASE_MAX)
66 return sctp_cid_tbl[cid.chunk]; 66 return sctp_cid_tbl[cid.chunk];
@@ -130,7 +130,7 @@ static const char *const sctp_primitive_tbl[SCTP_NUM_PRIMITIVE_TYPES] = {
130}; 130};
131 131
132/* Lookup primitive debug name. */ 132/* Lookup primitive debug name. */
133const char *sctp_pname(const sctp_subtype_t id) 133const char *sctp_pname(const union sctp_subtype id)
134{ 134{
135 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX) 135 if (id.primitive <= SCTP_EVENT_PRIMITIVE_MAX)
136 return sctp_primitive_tbl[id.primitive]; 136 return sctp_primitive_tbl[id.primitive];
@@ -143,7 +143,7 @@ static const char *const sctp_other_tbl[] = {
143}; 143};
144 144
145/* Lookup "other" debug name. */ 145/* Lookup "other" debug name. */
146const char *sctp_oname(const sctp_subtype_t id) 146const char *sctp_oname(const union sctp_subtype id)
147{ 147{
148 if (id.other <= SCTP_EVENT_OTHER_MAX) 148 if (id.other <= SCTP_EVENT_OTHER_MAX)
149 return sctp_other_tbl[id.other]; 149 return sctp_other_tbl[id.other];
@@ -165,7 +165,7 @@ static const char *const sctp_timer_tbl[] = {
165}; 165};
166 166
167/* Lookup timer debug name. */ 167/* Lookup timer debug name. */
168const char *sctp_tname(const sctp_subtype_t id) 168const char *sctp_tname(const union sctp_subtype id)
169{ 169{
170 BUILD_BUG_ON(SCTP_EVENT_TIMEOUT_MAX + 1 != ARRAY_SIZE(sctp_timer_tbl)); 170 BUILD_BUG_ON(SCTP_EVENT_TIMEOUT_MAX + 1 != ARRAY_SIZE(sctp_timer_tbl));
171 171