Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
d1102b59
Commit
d1102b59
authored
May 29, 2005
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Use %lx for netdev->features sysfs formatting.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
6c94d361
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/core/net-sysfs.c
net/core/net-sysfs.c
+2
-1
No files found.
net/core/net-sysfs.c
View file @
d1102b59
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment