]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: cleanup byte order issues when printed
authorGuojia Liao <liaoguojia@huawei.com>
Thu, 31 Oct 2019 11:23:24 +0000 (19:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 19:03:23 +0000 (12:03 -0700)
commitbec396c7ba6fb9490fae6c0712b0df9c2c7c0eb0
tree70671a591387e9b81d12791ec504be3b76dc7def
parent8d8a5acb654f4161118b3f2c292618b57257811e
net: hns3: cleanup byte order issues when printed

Though the hip08 and the IMP(Intelligent Management Processor)
have the same byte order right now, it is better to convert
__be or __le variable into the CPU's byte order before print.

Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c