summaryrefslogtreecommitdiff
path: root/drivers/uio
diff options
context:
space:
mode:
authorCristian Stoica <cristian.stoica@freescale.com>2014-10-09 15:00:27 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-07 10:09:07 -0800
commite0f1147cc9512d3610d2f2a0f069690661444703 (patch)
tree5c4d901cb1ff60ca8658e2846c0d35bf5b9ac089 /drivers/uio
parent5559b7bc42f1ff85759246e40ef73abf3171d8d9 (diff)
uio: support memory sizes larger than 32 bits
This is a completion to 27a90700a4275c5178b883b65927affdafa5185c The size field is also increased to allow values larger than 32 bits on platforms that have more than 32 bit physical addresses. Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio')
-rw-r--r--drivers/uio/uio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c
index 60fa6278fbce..6276f13e9e12 100644
--- a/drivers/uio/uio.c
+++ b/drivers/uio/uio.c
@@ -56,12 +56,12 @@ static ssize_t map_name_show(struct uio_mem *mem, char *buf)
static ssize_t map_addr_show(struct uio_mem *mem, char *buf)
{
- return sprintf(buf, "0x%llx\n", (unsigned long long)mem->addr);
+ return sprintf(buf, "%pa\n", &mem->addr);
}
static ssize_t map_size_show(struct uio_mem *mem, char *buf)
{
- return sprintf(buf, "0x%lx\n", mem->size);
+ return sprintf(buf, "%pa\n", &mem->size);
}
static ssize_t map_offset_show(struct uio_mem *mem, char *buf)