File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff 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 ();
Original file line number Diff line number Diff 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... " );
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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__
You can’t perform that action at this time.
0 commit comments