|
@@ -31,7 +31,6 @@
|
|
|
static const char fmt_hex[] = "%#x\n";
|
|
|
static const char fmt_long_hex[] = "%#lx\n";
|
|
|
static const char fmt_dec[] = "%d\n";
|
|
|
-static const char fmt_udec[] = "%u\n";
|
|
|
static const char fmt_ulong[] = "%lu\n";
|
|
|
static const char fmt_u64[] = "%llu\n";
|
|
|
|
|
@@ -202,7 +201,7 @@ static ssize_t speed_show(struct device *dev,
|
|
|
if (netif_running(netdev)) {
|
|
|
struct ethtool_cmd cmd;
|
|
|
if (!__ethtool_get_settings(netdev, &cmd))
|
|
|
- ret = sprintf(buf, fmt_udec, ethtool_cmd_speed(&cmd));
|
|
|
+ ret = sprintf(buf, fmt_dec, ethtool_cmd_speed(&cmd));
|
|
|
}
|
|
|
rtnl_unlock();
|
|
|
return ret;
|