Fix log position to avoid errno change. (errno can be changed when using dlog)