Skip to content

Commit

Permalink
net/hns3: adjust format specifier for enum
Browse files Browse the repository at this point in the history
[ upstream commit 692a1d2 ]

Here uses %d as printing output for enumeration member.

Fixes: c37ca66 ("net/hns3: support RSS")

Signed-off-by: Lijun Ou <oulijun@huawei.com>
  • Loading branch information
oulijun authored and bluca committed Feb 4, 2021
1 parent b6d4d8a commit 8c2efc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_flow.c
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@ hns3_parse_rss_algorithm(struct hns3_hw *hw, enum rte_eth_hash_function *func,
*hash_algo = HNS3_RSS_HASH_ALGO_SYMMETRIC_TOEP;
break;
default:
hns3_err(hw, "Invalid RSS algorithm configuration(%u)",
hns3_err(hw, "Invalid RSS algorithm configuration(%d)",
algo_func);
return -EINVAL;
}
Expand Down

0 comments on commit 8c2efc7

Please sign in to comment.