]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NET]: Use %lx for netdev->features sysfs formatting.
authorDavid S. Miller <davem@davemloft.net>
Mon, 30 May 2005 03:28:25 +0000 (20:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 May 2005 03:28:25 +0000 (20:28 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c

index 060f703659e83544283990912aa92c587938e41b..910eb4c05a4782f5b5de56f1e417a527dc99ffbf 100644 (file)
@@ -21,6 +21,7 @@
 #define to_net_dev(class) container_of(class, struct net_device, class_dev)
 
 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_ulong[] = "%lu\n";
 
@@ -91,7 +92,7 @@ static CLASS_DEVICE_ATTR(field, S_IRUGO, show_##field, NULL)          \
 NETDEVICE_ATTR(addr_len, fmt_dec);
 NETDEVICE_ATTR(iflink, fmt_dec);
 NETDEVICE_ATTR(ifindex, fmt_dec);
-NETDEVICE_ATTR(features, fmt_hex);
+NETDEVICE_ATTR(features, fmt_long_hex);
 NETDEVICE_ATTR(type, fmt_dec);
 
 /* use same locking rules as GIFHWADDR ioctl's */