projects
/
openwrt
/
staging
/
dedeckeh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ca8a6c
)
kernel: fix compile error inside adm6996.c
author
John Crispin
<john@openwrt.org>
Mon, 9 Feb 2015 12:09:17 +0000
(12:09 +0000)
committer
John Crispin
<john@openwrt.org>
Mon, 9 Feb 2015 12:09:17 +0000
(12:09 +0000)
drivers/net/phy/adm6996.c:881:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'u32' [-Wformat=]
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 44333
target/linux/generic/files/drivers/net/phy/adm6996.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/adm6996.c
b/target/linux/generic/files/drivers/net/phy/adm6996.c
index cbb3e85fba58d23fe30ac5654840416dad46273b..bf5ed1593365f3bf557d448206ea7cadd63e77ba 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/adm6996.c
+++ b/
target/linux/generic/files/drivers/net/phy/adm6996.c
@@
-876,7
+876,7
@@
adm6996_sw_get_port_mib(struct switch_dev *dev,
reg = r16(priv, adm6996_mibs[i].offset + ADM_OFFSET_PORT(port));
reg += r16(priv, adm6996_mibs[i].offset + ADM_OFFSET_PORT(port) + 1) << 16;
len += snprintf(buf + len, sizeof(priv->buf) - len,
- "%-12s: %
l
u\n",
+ "%-12s: %u\n",
adm6996_mibs[i].name,
reg);
}