Fix precommit-hook to work with astyle 2.04

Change-Id: I8a9aac4e9588d9039e9794db095a828776079b5d
logging: Avoid separated endofline character from its lines in log

With this fix, there is no possible racecondition between the string
and the endofline is written, all is written atomically

Change-Id: I4d0afc26d5f15a45c5b2b0c1adeb32eddbce13a0