From 07a67c7b965c106a9d3ffdf701daf0294ab3d318 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 20 Nov 2020 20:54:57 +0900 Subject: [PATCH] libs/libnx/nxmu/nx_eventhandler.c: Fix syslog formats --- libs/libnx/nxmu/nx_eventhandler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libnx/nxmu/nx_eventhandler.c b/libs/libnx/nxmu/nx_eventhandler.c index edb6980294..38ddc4706e 100644 --- a/libs/libnx/nxmu/nx_eventhandler.c +++ b/libs/libnx/nxmu/nx_eventhandler.c @@ -167,7 +167,7 @@ int nx_eventhandler(NXHANDLE handle) /* Dispatch the message appropriately */ msg = (struct nxsvrmsg_s *)buffer; - ginfo("Received msgid=%d\n", msg->msgid); + ginfo("Received msgid=%" PRId32 "\n", msg->msgid); switch (msg->msgid) { case NX_CLIMSG_CONNECTED: @@ -253,7 +253,7 @@ int nx_eventhandler(NXHANDLE handle) break; default: - gerr("ERROR: Unrecognized message opcode: %d\n", + gerr("ERROR: Unrecognized message opcode: %" PRId32 "\n", ((FAR struct nxsvrmsg_s *)buffer)->msgid); break; }