1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2020 Marvell International Ltd.
5 #include <rte_common.h>
8 #include "graph_private.h"
11 node_dump(FILE *f, struct node *n)
15 fprintf(f, "node <%s>\n", n->name);
16 fprintf(f, " id=%" PRIu32 "\n", n->id);
17 fprintf(f, " flags=0x%" PRIx64 "\n", n->flags);
18 fprintf(f, " addr=%p\n", n);
19 fprintf(f, " process=%p\n", n->process);
20 fprintf(f, " nb_edges=%d\n", n->nb_edges);
22 for (i = 0; i < n->nb_edges; i++)
23 fprintf(f, " edge[%d] <%s>\n", i, n->next_nodes[i]);