log: fix runtime infinite loop issue when print errors

In some platforms just like mips, the runtime
package not works well, and may cause infinite
loop issue, so add some tags to provent such
issue is necessary.

Change-Id: I6572ca8f0ddd8249ca3fe7b5e5a06504730e245c