fix problem with new line in debug mode

Change-Id: Ibdc7e69cc1b989688791d1fd2c420ae087c7270e