Skip to content

Commit

Permalink
remove misleading message
Browse files Browse the repository at this point in the history
  • Loading branch information
aspargas2 committed Aug 2, 2022
1 parent bf2d24b commit 99bdc6e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion arm11/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void __attribute__((noreturn)) MainLoop(void)
mcuPoweroff();
}

testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS);
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS, true);

consolePrint("Press any button to power off.\n");
wait_any_key_pressed();
Expand Down
4 changes: 2 additions & 2 deletions arm9/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ int main(/*int argc, char *argv[]*/) {

case PXICMD_RUN_MEMTEST: {
u64* totalErrorsAddr = (u64*) dequeuePxicmd();
*totalErrorsAddr = testMemory(dequeuePxicmd(), dequeuePxicmd());
*totalErrorsAddr = testMemory(dequeuePxicmd(), dequeuePxicmd(), false);
//ARM_BKPT();
break;
}
Expand Down Expand Up @@ -143,7 +143,7 @@ int main(/*int argc, char *argv[]*/) {
}

I2C_writeReg(I2C_DEV_CTR_MCU, 0x29, 1);
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS);
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS, true);
I2C_writeReg(I2C_DEV_CTR_MCU, 0x29, 6);

debugPrint("Deinitializing SD log... ");
Expand Down
5 changes: 3 additions & 2 deletions common/memtests.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static bool checkBitFade(u32 maxRegion) {
return ret;
}

u64 testMemory(u32 regions, u32 tests) {
u64 testMemory(u32 regions, u32 tests, bool showFinal) {
totalErrors = 0;

#ifndef ARM9
Expand Down Expand Up @@ -179,7 +179,8 @@ u64 testMemory(u32 regions, u32 tests) {
}
#endif

debugPrintf("Done. %llu total errors detected.\n", totalErrors);
if (showFinal)
debugPrintf("Done. %llu total errors detected.\n", totalErrors);

return totalErrors;
}
2 changes: 1 addition & 1 deletion common/memtests.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ typedef struct {
_Static_assert(ERROR_STRUCT_SIZE == sizeof(MemtestError));

// Returns total errors detected
u64 testMemory(u32 regions, u32 tests);
u64 testMemory(u32 regions, u32 tests, bool showFinal);

#endif //__ASSEMBLER__

0 comments on commit 99bdc6e

Please sign in to comment.