diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c index e02daa74e8334508d17611b323699d5c9fc2ae59..2edc8b796a4e7326aa44128a0618e15b9aa817de 100644 --- a/net/ethernet/eth.c +++ b/net/ethernet/eth.c @@ -398,7 +398,7 @@ EXPORT_SYMBOL(alloc_etherdev_mqs); ssize_t sysfs_format_mac(char *buf, const unsigned char *addr, int len) { - return scnprintf(buf, PAGE_SIZE, "%*phC\n", len, addr); + return sysfs_emit(buf, "%*phC\n", len, addr); } EXPORT_SYMBOL(sysfs_format_mac);