net/local/local_fifo.c: Fix a few printf format warnings

This commit is contained in:
YAMAMOTO Takashi 2020-11-13 18:28:44 +09:00 committed by Xiang Xiao
parent 4db9da3ab5
commit 87f73862fd
1 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <unistd.h>
@ -87,7 +88,7 @@ static inline void local_cs_name(FAR struct local_conn_s *conn,
}
else
{
snprintf(path, LOCAL_FULLPATH_LEN - 1, "%s" LOCAL_CS_SUFFIX "%x",
snprintf(path, LOCAL_FULLPATH_LEN - 1, "%s" LOCAL_CS_SUFFIX "%" PRIx32,
conn->lc_path, conn->lc_instance_id);
}
@ -114,7 +115,7 @@ static inline void local_sc_name(FAR struct local_conn_s *conn,
}
else
{
snprintf(path, LOCAL_FULLPATH_LEN - 1, "%s" LOCAL_SC_SUFFIX "%x",
snprintf(path, LOCAL_FULLPATH_LEN - 1, "%s" LOCAL_SC_SUFFIX "%" PRIx32,
conn->lc_path, conn->lc_instance_id);
}