Skip to content

Commit

Permalink
graphics/nxmu/nxmu_server.c: Fix syslog formats
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt authored and xiaoxiang781216 committed Nov 21, 2020
1 parent f940c3d commit 964423d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graphics/nxmu/nxmu_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

#include <nuttx/config.h>

#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -331,7 +332,7 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev)
DEBUGASSERT(nbytes >= sizeof(struct nxsvrmsg_releasebkgd_s));
msg = (FAR struct nxsvrmsg_s *)buffer;

ginfo("Received opcode=%d nbytes=%d\n", msg->msgid, nbytes);
ginfo("Received opcode=%" PRId32 " nbytes=%d\n", msg->msgid, nbytes);
switch (msg->msgid)
{
/* Messages sent from clients to the NX server ********************/
Expand Down Expand Up @@ -609,7 +610,7 @@ int nx_runinstance(FAR const char *mqname, FAR NX_DRIVERTYPE *dev)
case NX_CLIMSG_CONNECTED: /* Shouldn't happen */
case NX_CLIMSG_DISCONNECTED:
default:
gerr("ERROR: Unrecognized command: %d\n", msg->msgid);
gerr("ERROR: Unrecognized command: %" PRId32 "\n", msg->msgid);
break;
}
}
Expand Down

0 comments on commit 964423d

Please sign in to comment.