Skip to content

Commit

Permalink
adjtime: Fix wrong printf format when using CONFIG_SYSTEM_TIME64
Browse files Browse the repository at this point in the history
  • Loading branch information
PetteriAimonen committed Sep 29, 2023
1 parent 85eb37c commit 7a37a93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/adjtime/adjtime_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int main(int argc, FAR char *argv[])
parse_args(&delta, argc, argv);

printf("Delta time is %ld seconds and %ld micro seconds.\n",
delta.tv_sec, delta.tv_usec);
(long)delta.tv_sec, delta.tv_usec);

/* Call adjtime function. */

Expand All @@ -160,7 +160,7 @@ int main(int argc, FAR char *argv[])
else
{
printf("Returned olddelta is %ld seconds and %ld micro seconds.\n",
olddelta.tv_sec, olddelta.tv_usec);
(long)olddelta.tv_sec, olddelta.tv_usec);
}

return ret;
Expand Down

0 comments on commit 7a37a93

Please sign in to comment.