aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-02-09 12:09:17 +0000
committerJohn Crispin <john@openwrt.org>2015-02-09 12:09:17 +0000
commit28353b3fc5e4cedcb9200b43cd738ac38e00eb96 (patch)
treee116004b026203e75bdc4dd97379538fa1897304 /target
parent2ca8a6cce44676f4436179ec808c5e1a8e4066ab (diff)
downloadupstream-28353b3fc5e4cedcb9200b43cd738ac38e00eb96.tar.gz
upstream-28353b3fc5e4cedcb9200b43cd738ac38e00eb96.tar.bz2
upstream-28353b3fc5e4cedcb9200b43cd738ac38e00eb96.zip
kernel: fix compile error inside adm6996.c
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
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/files/drivers/net/phy/adm6996.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/adm6996.c b/target/linux/generic/files/drivers/net/phy/adm6996.c
index cbb3e85fba..bf5ed15933 100644
--- 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: %lu\n",
+ "%-12s: %u\n",
adm6996_mibs[i].name,
reg);
}