Fix the wrong format, format specifies type 'int' but the argument has type

'long', it was spotted by clang.

Differential Revision:	D2663
Reviewed by:		imp, rodrigc
This commit is contained in:
Marcelo Araujo 2015-06-01 06:14:17 +00:00
parent a770b4d8ae
commit 9310c7d568
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283869

View File

@ -62,7 +62,7 @@ print_context_label (char const *mark,
{
time_t sec = inf->stat.st_mtime;
verify (info_preserved, sizeof inf->stat.st_mtime <= sizeof sec);
sprintf (buf, "%jd.%.9d", (intmax_t)sec, nsec);
sprintf (buf, "%jd.%.9ld", (intmax_t)sec, nsec);
}
fprintf (outfile, "%s %s\t%s\n", mark, inf->name, buf);
}