Skip to content

Commit

Permalink
examples/lte_lwm2m: Fix compile warnings
Browse files Browse the repository at this point in the history
Fix compile warnings:
- printf format by -Wformat
  • Loading branch information
SPRESENSE committed Dec 17, 2021
1 parent 9e203b6 commit b7b6c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/lte_lwm2m/object_security.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void display_security_object(lwm2m_object_t * object)
security_instance_t * instance = (security_instance_t *)object->instanceList;
while (instance != NULL)
{
fprintf(stdout, " /%u/%u: instanceId: %u, uri: %s, isBootstrap: %s, shortId: %u, clientHoldOffTime: %u\r\n",
fprintf(stdout, " /%u/%u: instanceId: %u, uri: %s, isBootstrap: %s, shortId: %u, clientHoldOffTime: %lu\r\n",
object->objID, instance->instanceId,
instance->instanceId, instance->uri, instance->isBootstrap ? "true" : "false",
instance->shortID, instance->clientHoldOffTime);
Expand Down
2 changes: 1 addition & 1 deletion examples/lte_lwm2m/object_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ void display_server_object(lwm2m_object_t * object)
server_instance_t * serverInstance = (server_instance_t *)object->instanceList;
while (serverInstance != NULL)
{
fprintf(stdout, " /%u/%u: instanceId: %u, shortServerId: %u, lifetime: %u, storing: %s, binding: %s",
fprintf(stdout, " /%u/%u: instanceId: %u, shortServerId: %u, lifetime: %lu, storing: %s, binding: %s",
object->objID, serverInstance->instanceId,
serverInstance->instanceId, serverInstance->shortServerId, serverInstance->lifetime,
serverInstance->storing ? "true" : "false", serverInstance->binding);
Expand Down

0 comments on commit b7b6c12

Please sign in to comment.