If the cbmem console buffer isn't zero filled before it's used, there won't be a terminator at the end. We need to put one at the cursor position manually. BUG=chrome-os-partner:19420 TEST=Booted and ran cbmem -c on pit. No longer saw lots of garbage printed after the actual console output. BRANCH=None Change-Id: I69870c2b24b67ce3cbcd402b62f3574acb4c2a8f Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: https://gerrit.chromium.org/gerrit/65300 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org> |
||
|---|---|---|
| .. | ||
| cbmem.c | ||
| Makefile | ||