summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r--pcitool/cli.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c
index a8f1e35..75249f1 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -550,8 +550,14 @@ void Info(pcilib_t *handle, const pcilib_model_description_t *model_info) {
info = pcilib_get_plugin_model(handle, plugin, 0, 0, NULL);
if (info) {
printf(" %s\n", entry->d_name);
- for (j = 0; info[j].name; j++)
- printf(" %-12s - %s\n", info[j].name, info[j].description?info[j].description:"");
+ for (j = 0; info[j].name; j++) {
+ pcilib_version_t version = info[j].api->version;
+ printf(" %-12s %u.%u.%u - %s\n", info[j].name,
+ PCILIB_VERSION_GET_MAJOR(version),
+ PCILIB_VERSION_GET_MINOR(version),
+ PCILIB_VERSION_GET_MICRO(version),
+ info[j].description?info[j].description:"");
+ }
}
pcilib_plugin_close(plugin);
} else {