Fixed dome bugs in register_log_file and fwrite


git-svn-id: file:///var/johncronin-svn/rpi-boot@106 0f3ef04d-8e58-4d2a-b558-b31704943fbb