|
@@ -1838,8 +1838,8 @@ static void e1000_get_ethtool_stats(struct net_device *netdev,
|
|
p = (char *)adapter + stat->stat_offset;
|
|
p = (char *)adapter + stat->stat_offset;
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
- WARN_ONCE(1, "Invalid E1000 stat type: %u index %d\n",
|
|
|
|
- stat->type, i);
|
|
|
|
|
|
+ netdev_WARN_ONCE(netdev, "Invalid E1000 stat type: %u index %d\n",
|
|
|
|
+ stat->type, i);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|