Fix printf format specification for reporting packet stats.

We were using '%d' for unsigned integers, leading to output like this:

    1535403189.557168 -483803356 packets received on interface 0:1, 0 dropped
This commit is contained in:
Robin Sommer 2018-09-05 19:30:48 +00:00
parent 7dbd6366f9
commit e275927a64
10 changed files with 13 additions and 9 deletions

View file

@ -421,7 +421,7 @@ void net_get_final_stats()
{
iosource::PktSrc::Stats s;
ps->Statistics(&s);
reporter->Info("%d packets received on interface %s, %d dropped",
reporter->Info("%u packets received on interface %s, %u dropped",
s.received, ps->Path().c_str(), s.dropped);
}
}