Cast time_t to uintmax_t so they can be printed as %ju without breaking on

various architectures.  This should appease tinderbox on alpha and not break
it anywhere else.

Suggested by:	harti
This commit is contained in:
Philip Paeps 2005-03-15 10:45:42 +00:00
parent 6bc6a87cc9
commit d3ddf1d615
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143626

View File

@ -33,6 +33,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -1143,18 +1144,18 @@ pf_dump(void)
pfq_refresh();
pft_refresh();
syslog(LOG_ERR, "Dump: pfi_table_age = %zu",
pfi_table_age);
syslog(LOG_ERR, "Dump: pfi_table_age = %ju",
(uintmax_t)pfi_table_age);
syslog(LOG_ERR, "Dump: pfi_table_count = %d",
pfi_table_count);
syslog(LOG_ERR, "Dump: pfq_table_age = %zu",
pfq_table_age);
syslog(LOG_ERR, "Dump: pfq_table_age = %ju",
(uintmax_t)pfq_table_age);
syslog(LOG_ERR, "Dump: pfq_table_count = %d",
pfq_table_count);
syslog(LOG_ERR, "Dump: pft_table_age = %zu",
pft_table_age);
syslog(LOG_ERR, "Dump: pft_table_age = %ju",
(uintmax_t)pft_table_age);
syslog(LOG_ERR, "Dump: pft_table_count = %d",
pft_table_count);