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

@ -1,4 +1,8 @@
2.5-967 | 2018-09-05 19:30:48 +0000
* Fix printf format specification for reporting packet stats. (Robin Sommer, Corelight)
2.5-965 | 2018-09-04 17:17:36 -0500
* Updates to NTLM script handling. (Seth Hall, Corelight)

View file

@ -1 +1 @@
2.5-965
2.5-967

@ -1 +1 @@
Subproject commit 2c106da5c56f0c864f9894dff21bd6557ef219eb
Subproject commit b0ba021208c0c5fe8d7c92412b919d6667f63961

@ -1 +1 @@
Subproject commit 090d2614a6dfd2a354cb36f890f9d52557300c74
Subproject commit ff8c94964fccbf60abae401d03c9fb35a8894c16

@ -1 +1 @@
Subproject commit 2c37ea379bc25dd4b4fd38ee2bb40068e5418a2b
Subproject commit 9866d31e45f5e1467c0f1fd4a1cd9948b067ce43

@ -1 +1 @@
Subproject commit 9e6290ee3f398141d90995bb766163218e9076a8
Subproject commit 1898e81bba7c595108bc20c5148df7f0f6a2258f

@ -1 +1 @@
Subproject commit 9455886e959b5d9ddeccc86ae5428706e2424237
Subproject commit a88cb3434e05dbb117687f6152acc8892ed969ca

@ -1 +1 @@
Subproject commit 96c574a9de7709d73715a91368a5ef52de1af6ef
Subproject commit a3e188680cd2889edbb9cf09c01fb1f031a90975

@ -1 +1 @@
Subproject commit bfbdec713eaa9d20457c36d84202a348b5383e15
Subproject commit 7c95b51de202ac534b27dd721da5778b773dd614

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);
}
}