Fix format string for size_t types
Fix missing “%z[dux]” prefix printf formatter string for `size_t` types. Change-Id: If216a778b0b65e8ab2cdd1c7484cb8452d1f965d
This commit is contained in:
parent
61890c3b2e
commit
d91890d288
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ int env_get_param(const char *key, char *value, int max_len)
|
|||
m.m_lsys_krn_sys_getinfo.val_len = sizeof(mon_params);
|
||||
m.m_lsys_krn_sys_getinfo.val_ptr = (vir_bytes)mon_params;
|
||||
if ((s=_kernel_call(SYS_GETINFO, &m)) != OK) {
|
||||
printf("SYS_GETINFO: %d (size %u)\n", s, sizeof(mon_params));
|
||||
printf("SYS_GETINFO: %d (size %zu)\n", s, sizeof(mon_params));
|
||||
return(s);
|
||||
}
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ init_inodes(unsigned int inodes, struct inode_stat * stat,
|
|||
}
|
||||
|
||||
#if DEBUG
|
||||
printf("VTREEFS: allocated %d+%d+%d bytes\n",
|
||||
printf("VTREEFS: allocated %zu+%zu+%zu bytes\n",
|
||||
nr_inodes * sizeof(inode[0]),
|
||||
nr_inodes * sizeof(parent_name_head[0]),
|
||||
nr_inodes * sizeof(parent_index_head[0]));
|
||||
|
|
Loading…
Reference in a new issue