summaryrefslogtreecommitdiffstats
path: root/pcilib/plugin.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-03 02:07:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-03 02:07:32 +0200
commitf45828699b405acf51130fbae248e6a2193247cd (patch)
treedc571db8193e86f5db4aba965640faa57458904a /pcilib/plugin.c
parent4753ea5cded2ed3fdd68d8e5b656566f6b9771ab (diff)
downloadpcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.gz
pcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.bz2
pcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.xz
pcitool-f45828699b405acf51130fbae248e6a2193247cd.zip
Fix typos in versioning code
Diffstat (limited to 'pcilib/plugin.c')
-rw-r--r--pcilib/plugin.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pcilib/plugin.c b/pcilib/plugin.c
index 3202e95..141016c 100644
--- a/pcilib/plugin.c
+++ b/pcilib/plugin.c
@@ -54,7 +54,15 @@ const pcilib_model_description_t *pcilib_get_plugin_model(pcilib_t *pcilib, void
if (!model_info) return model_info;
if ((PCILIB_VERSION_GET_MAJOR(model_info->interface_version) != PCILIB_VERSION_MAJOR)||(PCILIB_VERSION_GET_MINOR(model_info->interface_version) != PCILIB_VERSION_MINOR)) {
- pcilib_warning("Plugin %s exposes outdated interface version (%lu), pcitool supports (%lu)", model_info->name, model_info->interface_version, PCILIB_EVENT_INTERFACE_VERSION);
+ printf("%u %u\n", model_info->interface_version, PCILIB_EVENT_INTERFACE_VERSION);
+ pcilib_warning("Plugin %s exposes outdated interface version (%u.%u.%u), pcilib interface version is (%u.%u.%u)", model_info->name,
+ PCILIB_VERSION_GET_MAJOR(model_info->interface_version),
+ PCILIB_VERSION_GET_MINOR(model_info->interface_version),
+ PCILIB_VERSION_GET_MICRO(model_info->interface_version),
+ PCILIB_VERSION_GET_MAJOR(PCILIB_EVENT_INTERFACE_VERSION),
+ PCILIB_VERSION_GET_MINOR(PCILIB_EVENT_INTERFACE_VERSION),
+ PCILIB_VERSION_GET_MICRO(PCILIB_EVENT_INTERFACE_VERSION)
+ );
return NULL;
}