Fix dmesg message retrieval bug

A previous commit had removed a for loop so only the first message was ever
output over bridge protocol.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Improve dmesg retrieval performance by scanning more often