Skip to content

Commit

Permalink
Merge pull request #496 from marckleinebudde/isobus
Browse files Browse the repository at this point in the history
isobusfs_cmn: isobusfs_get_timeout_ms(): fix print on 32 bit archs
  • Loading branch information
marckleinebudde committed Feb 13, 2024
2 parents e547c32 + 7c56863 commit 1a2992e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion isobusfs/isobusfs_cmn.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <inttypes.h>
#include <limits.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down Expand Up @@ -137,7 +138,7 @@ int isobusfs_get_timeout_ms(struct timespec *ts)
timeout_ms = 0;
} else {
if (time_diff > INT_MAX) {
warn("timeout too long: %ld ms", time_diff);
warn("timeout too long: %" PRId64 " ms", time_diff);
time_diff = INT_MAX;
}

Expand Down

0 comments on commit 1a2992e

Please sign in to comment.