Skip to content

Commit

Permalink
Test 102 Print Format and 32-bit Print in test 01
Browse files Browse the repository at this point in the history
Signed-off-by: Ajayswar S <[email protected]>
Change-Id: I9a7fe848b10068f6a30f8b198b2c4d309c96cb86
  • Loading branch information
ajayswar-s committed Oct 24, 2024
1 parent e55a6dc commit 9396fdd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions test_pool/pe/operating_system/test_os_c001.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,16 +354,28 @@ payload(uint32_t num_pe)
if (!(pe_buffer->reg_status[reg_index])) {
val_print(ACS_PRINT_INFO, "\n PE Index: %d, ", i);
val_print(ACS_PRINT_INFO, reg_list[reg_index].reg_desc, 0);
val_print(ACS_PRINT_INFO, " : 0x%016llx", pe_buffer->reg_data[reg_index]);
if (reg_list[reg_index].dependency == AA32)
val_print(ACS_PRINT_INFO, " : 0x%08llx", pe_buffer->reg_data[reg_index]);
else
val_print(ACS_PRINT_INFO, " : 0x%016llx", pe_buffer->reg_data[reg_index]);
} else {
val_print(ACS_PRINT_ERR, "\n PE Index: %d, ", i);
val_print(ACS_PRINT_ERR, reg_list[reg_index].reg_desc, 0);
val_print(ACS_PRINT_ERR, " : 0x%016llx FAIL\n",
if (reg_list[reg_index].dependency == AA32) {
val_print(ACS_PRINT_ERR, " : 0x%08llx FAIL\n",
pe_buffer->reg_data[reg_index]);
val_print(ACS_PRINT_ERR, " Masked Primary PE Value : 0x%016llx \n",
val_print(ACS_PRINT_ERR, " Masked Primary PE Value : 0x%08llx \n",
rd_data_array[reg_index] & (~reg_list[i].reg_mask));
val_print(ACS_PRINT_ERR, " Masked Current PE Value : 0x%016llx ",
val_print(ACS_PRINT_ERR, " Masked Current PE Value : 0x%08llx ",
pe_buffer->reg_data[reg_index] & (~reg_list[i].reg_mask));
} else {
val_print(ACS_PRINT_ERR, " : 0x%016llx FAIL\n",
pe_buffer->reg_data[reg_index]);
val_print(ACS_PRINT_ERR, " Masked Primary PE Value : 0x%016llx \n",
rd_data_array[reg_index] & (~reg_list[i].reg_mask));
val_print(ACS_PRINT_ERR, " Masked Current PE Value : 0x%016llx ",
pe_buffer->reg_data[reg_index] & (~reg_list[i].reg_mask));
}
reg_fail = reg_fail + 1;
}
}
Expand Down
4 changes: 2 additions & 2 deletions val/bsa/src/bsa_acs_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ val_memory_get_addr(MEMORY_INFO_e mem_type, uint32_t instance, uint64_t *attr)
return g_memory_info_table->info[i].phy_addr;
}

val_print(ACS_PRINT_INFO, "Instance 0x%x not found ", instance);
val_print(ACS_PRINT_INFO, "for memory type 0x%x\n", mem_type);
val_print(ACS_PRINT_INFO, "\n Instance 0x%x not found ", instance);
val_print(ACS_PRINT_INFO, "for memory type 0x%x", mem_type);
return 0;
}

Expand Down

0 comments on commit 9396fdd

Please sign in to comment.