summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2016-02-17 18:27:34 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 14:27:36 -0800
commit35bf7692e765c2275bf93fe573f7ca868ab73453 (patch)
tree9c96029f50751a8cc6daba72e1e39cc01085c622 /drivers/misc/mei/main.c
parent941943cf519f7cacbbcecee5c4ef4b77b466bd5c (diff)
downloadlwn-35bf7692e765c2275bf93fe573f7ca868ab73453.tar.gz
lwn-35bf7692e765c2275bf93fe573f7ca868ab73453.zip
mei: fix format string in debug prints
buf_idx type was changed to size_t, and few places missed out to change the print format from %ld to %zu. Use also uz for buf.size which is also of size_t Fixes: commit 56988f22e097 ("mei: fix possible integer overflow issue")' Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 7e637eb46cb9..52635b063873 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -221,7 +221,7 @@ copy_buffer:
goto free;
}
- cl_dbg(dev, cl, "buf.size = %zd buf.idx = %zd offset = %lld\n",
+ cl_dbg(dev, cl, "buf.size = %zu buf.idx = %zu offset = %lld\n",
cb->buf.size, cb->buf_idx, *offset);
if (*offset >= cb->buf_idx) {
rets = 0;