projects
/
platform
/
kernel
/
swap-modules.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94df46b
)
driver: fix invalid printing format for size_t
02/172102/1
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 12 Mar 2018 01:31:49 +0000
(10:31 +0900)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 12 Mar 2018 01:33:23 +0000
(10:33 +0900)
The size_t type is differ from 32/64 bit and printing format %u
is invalid. Fix the invalid printing format for size_t with %zu.
Change-Id: Ib7d105b0f54c416f2448344d6ef2a2afc2d421fd
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
modules/driver/driver_to_buffer.c
patch
|
blob
|
history
diff --git
a/modules/driver/driver_to_buffer.c
b/modules/driver/driver_to_buffer.c
index
cbc1edc
..
aaca1b4
100644
(file)
--- a/
modules/driver/driver_to_buffer.c
+++ b/
modules/driver/driver_to_buffer.c
@@
-258,7
+258,7
@@
int driver_to_buffer_fill_spd(struct splice_pipe_desc *spd)
data_to_splice -= read_from_current_page;
if (spd->nr_pages > spd->nr_pages_max) {
- print_err("Too much data to read! Left : %u\n",
+ print_err("Too much data to read! Left : %
z
u\n",
data_to_splice);
break;
}