From 400b82b3139356b72d8775fc9a9af88ca4bda556 Mon Sep 17 00:00:00 2001 From: Alessandro Bellia Date: Wed, 21 Aug 2024 13:07:54 +0200 Subject: [PATCH] Added some logs Signed-off-by: Alessandro Bellia --- Client/scan/pci.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Client/scan/pci.cpp b/Client/scan/pci.cpp index 179bc4a..0a859e5 100644 --- a/Client/scan/pci.cpp +++ b/Client/scan/pci.cpp @@ -263,6 +263,7 @@ static void scan::check_activity(PORT_DEVICE_INFO& port) dev_with_ints = 1; if (isr_stats.IsrCount) { + printf("device [%d:%d:%d] has fired [%d] interrupts\n", dev.bus, dev.slot, dev.func, (int)isr_stats.IsrCount); activity = 1; break; } @@ -344,6 +345,7 @@ static void scan::check_gummybear(BOOL advanced, PORT_DEVICE_INFO& port) { port.blk = 2; port.blk_info = 23; + printf("serr test failed for [%d:%d:%d]\n", dev.bus, dev.slot, dev.func); return; } } @@ -369,6 +371,7 @@ static void scan::check_gummybear(BOOL advanced, PORT_DEVICE_INFO& port) { port.blk = 2; port.blk_info = 23; + printf("dev_ctrl_ur_reporting test failed for [%d:%d:%d]\n", dev.bus, dev.slot, dev.func); return; } else @@ -397,6 +400,7 @@ static void scan::check_gummybear(BOOL advanced, PORT_DEVICE_INFO& port) { port.blk = 2; port.blk_info = 23; + printf("pme test failed for [%d:%d:%d]\n", dev.bus, dev.slot, dev.func); return; } } @@ -449,6 +453,7 @@ static void scan::check_gummybear(BOOL advanced, PORT_DEVICE_INFO& port) { port.blk = 2; port.blk_info = 23; + printf("cap test failed offset %d\n for [%d:%d:%d]\n", off, dev.bus, dev.slot, dev.func); return; } } @@ -494,6 +499,7 @@ static void scan::check_gummybear(BOOL advanced, PORT_DEVICE_INFO& port) { port.blk = 2; port.blk_info = 23; + printf("ext cap test failed offset %d\n for [%d:%d:%d]\n", off, dev.bus, dev.slot, dev.func); return; } }