net: hns3: print out command code when dump fails in debugfs
authorYufeng Mo <moyufeng@huawei.com>
Sat, 7 Mar 2020 03:42:48 +0000 (11:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 02:36:13 +0000 (19:36 -0700)
commit77ba415d192011b5ef9e9979638772b42b5d4107
tree48b5a2da04736362cc359537ac420ced73c00975
parente45afb396e233b972aee187c7adb058859c5ac53
net: hns3: print out command code when dump fails in debugfs

This patch adds a local variable to save the command code in
some dump cases which need to modify the command code, then
the failing command code can be print out for debugging.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c