printf(" in %s%s%s", child->get(child, "spi-in"),
child->get(child, "cpi-in") ? "/" : "",
child->get(child, "cpi-in") ?: "");
- if (child->get(child, "mark-in"))
+ if (child->get(child, "mark-in") || child->get(child, "if-id-in"))
{
- printf(" (0x%s", child->get(child, "mark-in"));
- if (child->get(child, "mark-mask-in"))
+ printf(" (");
+ if (child->get(child, "mark-in"))
{
- printf("/0x%s", child->get(child, "mark-mask-in"));
+ printf("0x%s", child->get(child, "mark-in"));
+ if (child->get(child, "mark-mask-in"))
+ {
+ printf("/0x%s", child->get(child, "mark-mask-in"));
+ }
+ }
+ else
+ {
+ printf("-");
+ }
+ if (child->get(child, "if-id-in"))
+ {
+ printf("|0x%s", child->get(child, "if-id-in"));
}
printf(")");
}
printf(" out %s%s%s", child->get(child, "spi-out"),
child->get(child, "cpi-out") ? "/" : "",
child->get(child, "cpi-out") ?: "");
- if (child->get(child, "mark-out"))
+ if (child->get(child, "mark-out") || child->get(child, "if-id-out"))
{
- printf(" (0x%s", child->get(child, "mark-out"));
- if (child->get(child, "mark-mask-out"))
+ printf(" (");
+ if (child->get(child, "mark-out"))
+ {
+ printf("0x%s", child->get(child, "mark-out"));
+ if (child->get(child, "mark-mask-out"))
+ {
+ printf("/0x%s", child->get(child, "mark-mask-out"));
+ }
+ }
+ else
+ {
+ printf("-");
+ }
+ if (child->get(child, "if-id-out"))
{
- printf("/0x%s", child->get(child, "mark-mask-out"));
+ printf("|0x%s", child->get(child, "if-id-out"));
}
printf(")");
}