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 cpaelzer committed Feb 3, 2021
1 parent 6b5aae6 commit 4d528e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/hns3/hns3_flow.c
Expand Up @@ -1358,7 +1358,7 @@ hns3_parse_rss_algorithm(struct hns3_hw *hw, enum rte_eth_hash_function *func,
*hash_algo = HNS3_RSS_HASH_ALGO_SIMPLE;
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 4d528e4

Please sign in to comment.