Coverity: fix issues in aml-bootloader_message [1/1]

PD#SWPL-172615

Problem:
Some coverity issues has been found
1.resource leak
2.invalid type

Solution:
1.close fd at necessary positions
2.format with the correct format specifier

Verify:
coverity scan

Signed-off-by: kirk.wang <kirk.wang@amlogic.com>
Change-Id: I5aed6a273f92c6f8159391e148a7619ff4e82d0a
2 files changed