Fix dlogutil -d under Android Logger backend 59/127759/3
authorMichal Bloch <m.bloch@samsung.com>
Fri, 28 Apr 2017 13:12:35 +0000 (15:12 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 16 May 2017 11:37:11 +0000 (13:37 +0200)
commit30b3ac1492e385523d029f2f6ce2063da9926d8d
tree48c12a2ad6b958cf6f52c91364b244ffbaea0104
parent649d066c0be1c6c6e41191e48df4bbc64b1d8106
Fix dlogutil -d under Android Logger backend

Util would keep reading as long as any data was in the buffer,
so if data came faster than it was processed then it would be
working indefinitely.

Now, it learns how many logs are present right at the start
by sending a get length request and only reads that many.

Change-Id: Idcfc7b10776ff93c85f16b335dad36d12bf5cd8e
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/logutil/logutil.c