summaryrefslogtreecommitdiffstats
path: root/pcitool
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:45:42 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-02 14:45:42 +0200
commit5387063faa68d774e2f586e6d8284520f3cde12f (patch)
treec849a07034fe0ba9880fdf8db27972925f93c75a /pcitool
parent92b8fe6e949f08308d237e87441e066a19a9eda6 (diff)
downloadpcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.gz
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.bz2
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.tar.xz
pcitool-5387063faa68d774e2f586e6d8284520f3cde12f.zip
Include version information in all API descriptions
Diffstat (limited to 'pcitool')
-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 {