]> git.proxmox.com Git - mirror_qemu.git/commit
device_tree: qemu_fdt_getprop_cell converted to use the error API
authorEric Auger <eric.auger@linaro.org>
Fri, 19 Feb 2016 16:42:30 +0000 (09:42 -0700)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Feb 2016 16:42:30 +0000 (09:42 -0700)
commit58e71097ced49600de1b38d2b59a823a9db66f19
tree54f61c6fb3704a282575d4586710b941d86e94ab
parent78e24f235eda4d3313917a50e135b7e06a046407
device_tree: qemu_fdt_getprop_cell converted to use the error API

This patch aligns the prototype with qemu_fdt_getprop. The caller
can choose whether the function self-asserts on error (passing
&error_fatal as Error ** argument, corresponding to the legacy behavior),
or behaves differently such as simply output a message.

In this later case the caller can use the new lenp parameter to interpret
the error if any.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
device_tree.c
hw/arm/boot.c
hw/arm/vexpress.c
include/sysemu/device_tree.h