Fix some printf warnings with size_t values

This commit is contained in:
Tim Wojtulewicz 2020-08-11 13:42:03 -07:00
parent c6e7d14757
commit f1ed66d52c
4 changed files with 8 additions and 7 deletions

View file

@ -1148,7 +1148,8 @@ void init_random_seed(const char* read_file, const char* write_file,
#endif
if ( pos < zeek::detail::KeyedHash::SEED_INIT_SIZE )
zeek::reporter->FatalError("Could not read enough random data. Wanted %d, got %lu", zeek::detail::KeyedHash::SEED_INIT_SIZE, pos);
zeek::reporter->FatalError("Could not read enough random data. Wanted %d, got %zu",
zeek::detail::KeyedHash::SEED_INIT_SIZE, pos);
if ( ! seed )
{