samples: subsys: ipc: Fix warning of size_t
formatting with %.*s
This addresses the following warning building with `CONFIG_64BIT=y`: error: field precision specifier '.*' expects argument of type 'int', but argument X has type 'size_t' {aka 'long unsigned int'} Signed-off-by: Chen Xingyu <hi@xingrz.me>
This commit is contained in:
parent
50f23500b8
commit
bb94c63fa2
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ void app_rpmsg_tty(void *arg1, void *arg2, void *arg3)
|
|||
k_sem_take(&data_tty_sem, K_FOREVER);
|
||||
if (tty_msg.len) {
|
||||
LOG_INF("[Linux TTY] incoming msg: %.*s",
|
||||
tty_msg.len, (char *)tty_msg.data);
|
||||
(int)tty_msg.len, (char *)tty_msg.data);
|
||||
snprintf(tx_buff, 13, "TTY 0x%04x: ", tty_ept.addr);
|
||||
memcpy(&tx_buff[12], tty_msg.data, tty_msg.len);
|
||||
rpmsg_send(&tty_ept, tx_buff, tty_msg.len + 12);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue