OSDN Git Service

net-sysfs: Convert to use sysfs_emit() APIs
authorWang Yufen <wangyufen@huawei.com>
Wed, 28 Sep 2022 11:49:44 +0000 (19:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Sep 2022 11:27:44 +0000 (12:27 +0100)
commit73c2e90a0edc84751c4b95b12fc52051dd60f542
tree106e3dd8928b1dbd37baa670fc6d54be6c66f24d
parentaff3069954ef534bfbfa1f3d196cb1a6fa8b01b6
net-sysfs: Convert to use sysfs_emit() APIs

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c