fw_cfg: Improve error message when can't load splash file
commitbed66336771ecdcb788d394bdd081a78b843e509
authorLi Qiang <liq3ea@gmail.com>
Thu, 1 Nov 2018 06:02:28 +0000 (31 23:02 -0700)
committerPhilippe Mathieu-Daudé <philmd@redhat.com>
Fri, 4 Jan 2019 14:30:52 +0000 (4 15:30 +0100)
tree6266b96b73695bd96d9718460f012bdf9d5cd049
parent6395fe0c2c7d9f336d87960a7c9924b630c57c91
fw_cfg: Improve error message when can't load splash file

read_splashfile() reports "failed to read splash file" without
further details. Get the details from g_file_get_contents(), and
include them in the error message. Also remove unnecessary 'res'
variable.

Signed-off-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <1541052148-28752-1-git-send-email-liq3ea@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
hw/nvram/fw_cfg.c