Skip to content

Commit

Permalink
Debug prints
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Goyal <[email protected]>
  • Loading branch information
rajatgoyal47 committed Jan 25, 2024
1 parent fe823aa commit 7713e2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test_pool/pcie/operating_system/test_p009.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ payload (void)
/* Get BDF of a device */
dev_bdf = val_peripheral_get_info (ANY_BDF, count - 1);
if (dev_bdf) {
val_print (AVS_PRINT_INFO, " Checking PCI device with BDF %4X\n", dev_bdf);
val_print (AVS_PRINT_ERR, " Checking PCI device with BDF %4X\n", dev_bdf);
/* Read MSI(X) vectors */
if (val_get_msi_vectors (dev_bdf, &dev_mvec)) {
test_skip = 0;
mvec = dev_mvec;
while(mvec) {
val_print(AVS_PRINT_ERR,
" MSI vector irq : 0x%llx \n", mvec->vector.vector_irq_base);
if(mvec->vector.vector_irq_base < LPI_BASE) {
val_print(AVS_PRINT_ERR,
" MSI vector irq %llx is not an LPI\n", mvec->vector.vector_irq_base);
Expand All @@ -124,7 +126,7 @@ payload (void)
}

if (test_skip) {
val_print(AVS_PRINT_DEBUG, "\n No MSI vectors found ", 0);
val_print(AVS_PRINT_ERR, "\n No MSI vectors found ", 0);
val_set_status (index, RESULT_SKIP(g_sbsa_level, TEST_NUM, 0));
} else if (!status) {
val_set_status (index, RESULT_PASS(g_sbsa_level, TEST_NUM, 0));
Expand Down

0 comments on commit 7713e2b

Please sign in to comment.