projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123e2fa
)
libupload: use %zx to print a size_t argument
author
H. Peter Anvin
<hpa@zytor.com>
Tue, 21 Jun 2011 04:31:51 +0000
(21:31 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Tue, 21 Jun 2011 04:31:51 +0000
(21:31 -0700)
To print an argument of type size_t we should use the %z size
modifier.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/libupload/cpio.c
patch
|
blob
|
history
diff --git
a/com32/libupload/cpio.c
b/com32/libupload/cpio.c
index
b3e1eb7
..
25b464d
100644
(file)
--- a/
com32/libupload/cpio.c
+++ b/
com32/libupload/cpio.c
@@
-31,7
+31,7
@@
int cpio_hdr(struct upload_backend *be, uint32_t mode, size_t datalen,
cpio_pad(be);
- sprintf(hdr, "%06o%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x",
+ sprintf(hdr, "%06o%08x%08x%08x%08x%08x%08x%08
z
x%08x%08x%08x%08x%08x%08x",
070701, /* c_magic */
inode++, /* c_ino */
mode, /* c_mode */