BZ: 30826
Console stops printing logs when oops_in_progress bit is set.
If if it's set and it's not a bug causing system hangs, we still
need to print logs after that. This patch is a fix under this situation.
Change-Id: I4f9fb1552d8ad1425b2bae3f9c9fc47e0a874bf7
Signed-off-by: Li, Ning <ning.li@intel.com>
Reviewed-on: http://android.intel.com:8080/44418
Reviewed-by: Zhang, Shijie <shijie.zhang@intel.com>
Reviewed-by: Berthier, Emmanuel <emmanuel.berthier@intel.com>
Reviewed-by: Chen, Jie D <jie.d.chen@intel.com>
Reviewed-by: Du, Alek <alek.du@intel.com>
Reviewed-by: Yang, Bin <bin.yang@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
if (oops_in_progress && oops_char_len++ > 2048)
return;
+ if (!oops_in_progress)
+ oops_char_len = 0;
#endif
wait_for_xmitr(up);
serial_out(up, UART_TX, ch);