diff --git a/lib/commonio.c b/lib/commonio.c index df2986aa..af207506 100644 --- a/lib/commonio.c +++ b/lib/commonio.c @@ -110,9 +110,9 @@ static int check_link_count (const char *file, bool log) if (sb.st_nlink != 2) { if (log) { - (void) fprintf (shadow_logfd, - "%s: %s: lock file already used (nlink: %u)\n", - shadow_progname, file, sb.st_nlink); + fprintf(shadow_logfd, + "%s: %s: lock file already used (nlink: %ju)\n", + shadow_progname, file, (uintmax_t) sb.st_nlink); } return 0; }