coresight: fixing compilation warnings picked up by 64bit compiler
authorMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 30 Mar 2015 20:13:35 +0000 (14:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 14:17:03 +0000 (16:17 +0200)
Compiling coresight drivers with a 64-bit compiler highlights a couple
of formatting issues, which are fixed by this patch.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/coresight/coresight-etb10.c
drivers/coresight/coresight-tmc.c

index c9acd406f0d02a4e8223b20d323c028d1938af9b..40049869aecdfb3909f018145b90b32846af8588 100644 (file)
@@ -313,8 +313,8 @@ static ssize_t etb_read(struct file *file, char __user *data,
 
        *ppos += len;
 
-       dev_dbg(drvdata->dev, "%s: %d bytes copied, %d bytes left\n",
-               __func__, len, (int) (depth * 4 - *ppos));
+       dev_dbg(drvdata->dev, "%s: %zu bytes copied, %d bytes left\n",
+               __func__, len, (int)(depth * 4 - *ppos));
        return len;
 }
 
index 3ff232f9ddf78c5a3c4f6146b1ec2dac7aef87b0..030e097c4fb2c42259292d3665405b5fe0c75ca8 100644 (file)
@@ -533,8 +533,8 @@ static ssize_t tmc_read(struct file *file, char __user *data, size_t len,
 
        *ppos += len;
 
-       dev_dbg(drvdata->dev, "%s: %d bytes copied, %d bytes left\n",
-               __func__, len, (int) (drvdata->size - *ppos));
+       dev_dbg(drvdata->dev, "%s: %zu bytes copied, %d bytes left\n",
+               __func__, len, (int)(drvdata->size - *ppos));
        return len;
 }