Skip to content

Commit 99bdc6e

Browse files
committed
remove misleading message
1 parent bf2d24b commit 99bdc6e

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

arm11/source/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void __attribute__((noreturn)) MainLoop(void)
8787
mcuPoweroff();
8888
}
8989

90-
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS);
90+
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS, true);
9191

9292
consolePrint("Press any button to power off.\n");
9393
wait_any_key_pressed();

arm9/source/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ int main(/*int argc, char *argv[]*/) {
111111

112112
case PXICMD_RUN_MEMTEST: {
113113
u64* totalErrorsAddr = (u64*) dequeuePxicmd();
114-
*totalErrorsAddr = testMemory(dequeuePxicmd(), dequeuePxicmd());
114+
*totalErrorsAddr = testMemory(dequeuePxicmd(), dequeuePxicmd(), false);
115115
//ARM_BKPT();
116116
break;
117117
}
@@ -143,7 +143,7 @@ int main(/*int argc, char *argv[]*/) {
143143
}
144144

145145
I2C_writeReg(I2C_DEV_CTR_MCU, 0x29, 1);
146-
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS);
146+
testMemory(ALL_MEMTEST_REGIONS, ALL_MEMTESTS, true);
147147
I2C_writeReg(I2C_DEV_CTR_MCU, 0x29, 6);
148148

149149
debugPrint("Deinitializing SD log... ");

common/memtests.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static bool checkBitFade(u32 maxRegion) {
9797
return ret;
9898
}
9999

100-
u64 testMemory(u32 regions, u32 tests) {
100+
u64 testMemory(u32 regions, u32 tests, bool showFinal) {
101101
totalErrors = 0;
102102

103103
#ifndef ARM9
@@ -179,7 +179,8 @@ u64 testMemory(u32 regions, u32 tests) {
179179
}
180180
#endif
181181

182-
debugPrintf("Done. %llu total errors detected.\n", totalErrors);
182+
if (showFinal)
183+
debugPrintf("Done. %llu total errors detected.\n", totalErrors);
183184

184185
return totalErrors;
185186
}

common/memtests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ typedef struct {
6565
_Static_assert(ERROR_STRUCT_SIZE == sizeof(MemtestError));
6666

6767
// Returns total errors detected
68-
u64 testMemory(u32 regions, u32 tests);
68+
u64 testMemory(u32 regions, u32 tests, bool showFinal);
6969

7070
#endif //__ASSEMBLER__

0 commit comments

Comments
 (0)