summaryrefslogtreecommitdiffstats
path: root/pcitool
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-04-28 06:16:36 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-04-28 06:16:36 +0200
commit4f4d155d5555997a966aefe2aa1d91fc96765d2a (patch)
treeecfaea9a0dcf963711010fe871d737a20019e1ec /pcitool
parent7356cb9627e941e66dbd90b6cc670a8427c88c5e (diff)
downloadpcitool-4f4d155d5555997a966aefe2aa1d91fc96765d2a.tar.gz
pcitool-4f4d155d5555997a966aefe2aa1d91fc96765d2a.tar.bz2
pcitool-4f4d155d5555997a966aefe2aa1d91fc96765d2a.tar.xz
pcitool-4f4d155d5555997a966aefe2aa1d91fc96765d2a.zip
Report selected model
Diffstat (limited to 'pcitool')
-rw-r--r--pcitool/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c
index e4ba0df..77d754b 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -522,7 +522,7 @@ void Info(pcilib_t *handle, const pcilib_model_description_t *model_info) {
path = getenv("PCILIB_PLUGIN_DIR");
if (!path) path = PCILIB_PLUGIN_DIR;
- printf("Vendor: %x, Device: %x, Bus: %x, Slot: %x, Function: %x\n", board_info->vendor_id, board_info->device_id, board_info->bus, board_info->slot, board_info->func);
+ printf("Vendor: %x, Device: %x, Bus: %x, Slot: %x, Function: %x, Model: %s\n", board_info->vendor_id, board_info->device_id, board_info->bus, board_info->slot, board_info->func, handle->model);
printf(" Interrupt - Pin: %i, Line: %i\n", board_info->interrupt_pin, board_info->interrupt_line);
List(handle, model_info, (char*)-1, 0);