Skip to content

Commit

Permalink
Try fixing build failure on Sparc, header file mixup of tv_usec type.
Browse files Browse the repository at this point in the history
debug.c:376: error: format '%03ld' expects type 'long int', but argument 6 has type 'int'
  • Loading branch information
Joachim Nilsson committed Sep 8, 2010
1 parent d9f59fb commit d3313ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ void logit(int severity, int syserr, const char *format, ...)
if (!debug)
fprintf(stderr, "%s: ", __progname);
fprintf(stderr, "%02d:%02d:%02d.%03ld %s", thyme->tm_hour,
thyme->tm_min, thyme->tm_sec, now.tv_usec / 1000, msg);
thyme->tm_min, thyme->tm_sec, (long int)(now.tv_usec / 1000), msg);
if (syserr == 0)
fprintf(stderr, "\n");

Expand Down

0 comments on commit d3313ad

Please sign in to comment.