summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManu Gautam <mgautam@codeaurora.org>2016-09-22 16:34:27 +0530
committerManu Gautam <mgautam@codeaurora.org>2016-09-22 16:34:27 +0530
commitd0bdc926c442099f61dffab4a457ce05c61e93b3 (patch)
treef0628ef3e6e61aefecd30bb2530d324b677cd253
parent9e2d528dc47d04e98c5e6f1c4ef84fc268115d36 (diff)
USB: gadget: f_fs: Use %zu when printing size_t
Using %lu for size_t gives compilation error on 32bit system. Replace this with %zu which should be used to print size_t on both 32bit and 64bit machines. Change-Id: Id8a42dec3e081187054cb2353ba3473bae9dd547 CRs-fixed: 1069970 Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
-rw-r--r--drivers/usb/gadget/function/f_fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c
index c5fd3ce3ed9a..fd2157c8e8c2 100644
--- a/drivers/usb/gadget/function/f_fs.c
+++ b/drivers/usb/gadget/function/f_fs.c
@@ -2275,7 +2275,7 @@ static int __ffs_do_os_desc_header(enum ffs_os_desc_type *next_type,
return -EINVAL;
}
- ffs_log("exit: size of desc %lu", sizeof(*desc));
+ ffs_log("exit: size of desc %zu", sizeof(*desc));
return sizeof(*desc);
}