[Pdbg] [PATCH v2 01/24] libpdbg: Only real nodes should have "system-path" property
Alistair Popple
alistair at popple.id.au
Wed Nov 20 14:39:00 AEDT 2019
Reviewed-by: Alistair Popple <alistair at popple.id.au>
On Thursday, 7 November 2019 1:27:45 PM AEDT Amitay Isaacs wrote:
> Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
> ---
> libpdbg/device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libpdbg/device.c b/libpdbg/device.c
> index 54a1d1d..f53a548 100644
> --- a/libpdbg/device.c
> +++ b/libpdbg/device.c
> @@ -716,6 +716,8 @@ static void pdbg_targets_init_virtual(struct pdbg_target *node, struct pdbg_targ
> if (!system_path)
> goto skip;
>
> + assert(!target_is_virtual(node));
> +
> /*
> * A virtual node identifies the attachment point of a node in the
> * system tree.
>
More information about the Pdbg
mailing list