Several fixes

These patches contains some small fixes. One is just cosmetic and prevents buildroot warnings, two others make debugging on serial line more comfortable.