diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-05-08 13:30:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-05-08 13:30:26 +0000 |
commit | 0e24dd9f57366c266f8b22b49319e23a3f90e539 (patch) | |
tree | 662bc2d4b1cc4c113a3c80e535064924761404f0 /target/linux | |
parent | 9906022f623093d61d9e0ad19422fbb2b987d329 (diff) | |
download | master-187ad058-0e24dd9f57366c266f8b22b49319e23a3f90e539.tar.gz master-187ad058-0e24dd9f57366c266f8b22b49319e23a3f90e539.tar.bz2 master-187ad058-0e24dd9f57366c266f8b22b49319e23a3f90e539.zip |
ar71xx: ag71xx: fix build error if debugfs is enabled
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26854 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c index e41162a792..90a50dad07 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_debugfs.c @@ -184,14 +184,15 @@ static ssize_t read_file_ring(struct file *file, char __user *user_buf, desc_hw = ag71xx_rr(ag, desc_reg); for (i = 0; i < ring_size; i++) { struct ag71xx_buf *ab = &ring->buf[i]; + u32 desc_dma = ((u32) ring->descs_dma) + i * ring->desc_size; len += snprintf(buf + len, buflen - len, "%3d %c%c%c %08x %08x %08x %08x %c %10lu\n", i, (i == curr) ? 'C' : ' ', (i == dirty) ? 'D' : ' ', - (desc_hw == ab->desc_dma) ? 'H' : ' ', - ab->desc_dma, + (desc_hw == desc_dma) ? 'H' : ' ', + desc_dma, ab->desc->next, ab->desc->data, ab->desc->ctrl, |