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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44333 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
John Crispin 2015-02-09 12:09:17 +00:00
parent c10ed85ffb
commit 237b0069dc
1 changed files with 1 additions and 1 deletions

View File

@ -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));
reg += r16(priv, adm6996_mibs[i].offset + ADM_OFFSET_PORT(port) + 1) << 16; reg += r16(priv, adm6996_mibs[i].offset + ADM_OFFSET_PORT(port) + 1) << 16;
len += snprintf(buf + len, sizeof(priv->buf) - len, len += snprintf(buf + len, sizeof(priv->buf) - len,
"%-12s: %lu\n", "%-12s: %u\n",
adm6996_mibs[i].name, adm6996_mibs[i].name,
reg); reg);
} }