Skip to content

Commit

Permalink
Print all parent drivers
Browse files Browse the repository at this point in the history
Change-Id: Iceb343f33c81c4fb0d8548a0ac12eb247249323b
  • Loading branch information
y-higuchi authored and jonohart committed Jan 20, 2017
1 parent 3d402dc commit 61bb7f4
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ private void printDriver(Driver driver) {
if (outputJson()) {
json(driver);
} else {
Driver parent = driver.parent();
print(FMT, driver.name(), parent != null ? parent.name() : "none",
driver.manufacturer(), driver.hwVersion(), driver.swVersion());
driver.behaviours().forEach(b -> print(FMT_B, b.getCanonicalName(),
driver.implementation(b).getCanonicalName()));
driver.properties().forEach((k, v) -> print(FMT_P, k, v));
driver.parents().forEach(parent -> {
print(FMT, driver.name(), parent != null ? parent.name() : "none",
driver.manufacturer(), driver.hwVersion(), driver.swVersion());
driver.behaviours().forEach(b -> print(FMT_B, b.getCanonicalName(),
driver.implementation(b).getCanonicalName()));
driver.properties().forEach((k, v) -> print(FMT_P, k, v));
});
}
}

Expand Down

0 comments on commit 61bb7f4

Please sign in to comment.