Re: [net-next PATCH 07/10] virtio_net: Update driver to use ethtool_sprintf

2021-03-14 Thread Jason Wang
在 2021/3/13 上午1:48, Alexander Duyck 写道: From: Alexander Duyck Update the code to replace instances of snprintf and a pointer update with just calling ethtool_sprintf. Also replace the char pointer with a u8 pointer to avoid having to recast the pointer type. Signed-off-by: Alexander Duyck

Re: [net-next PATCH 07/10] virtio_net: Update driver to use ethtool_sprintf

2021-03-14 Thread Michael S. Tsirkin
On Fri, Mar 12, 2021 at 09:48:46AM -0800, Alexander Duyck wrote: > From: Alexander Duyck > > Update the code to replace instances of snprintf and a pointer update with > just calling ethtool_sprintf. > > Also replace the char pointer with a u8 pointer to avoid having to recast > the pointer type

[net-next PATCH 07/10] virtio_net: Update driver to use ethtool_sprintf

2021-03-12 Thread Alexander Duyck
From: Alexander Duyck Update the code to replace instances of snprintf and a pointer update with just calling ethtool_sprintf. Also replace the char pointer with a u8 pointer to avoid having to recast the pointer type. Signed-off-by: Alexander Duyck --- drivers/net/virtio_net.c | 18 +++