As far as possible remove usage of warning/error/log in the kernel, otherwise the kernel context might try to take a lock hold by a core thread, which results in a syscall to block. Fix #3277
src/lib/hw
src/include/hw