6de9136002
Also print messages with single fprintf to prevents threads from interleaving. Change-Id: Ib3999fe6b1e67b4a16cd7dcde82f3dfc99dd48ff