[coreboot-gerrit] Change in em100[master]: trace/console: factor out error handling