Improve the dump code.

1. Make it generic and not tied to RTMsg only.
2. Support dumps that are spread across multiple recv calls.

Change-Id: Ifad803d80cc5085dd2fe4e8b5fb555d9459bd5ae
1 file changed