Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d797003

Browse files
TaeheeYookuba-moo
authored andcommitted
amt: fix wrong type string definition
amt message type definition starts from 1, not 0. But type_str[] starts from 0. So, it prints wrong type information. Fixes: cbc21dc ("amt: add data plane of amt interface") Signed-off-by: Taehee Yoo <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d16207f commit d797003

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/amt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ static char *status_str[] = {
5151
};
5252

5353
static char *type_str[] = {
54+
"", /* Type 0 is not defined */
5455
"AMT_MSG_DISCOVERY",
5556
"AMT_MSG_ADVERTISEMENT",
5657
"AMT_MSG_REQUEST",

0 commit comments

Comments
 (0)