bios/sdram: fix data error reporting
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 8 Jan 2018 10:43:49 +0000 (11:43 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 8 Jan 2018 10:43:49 +0000 (11:43 +0100)
litex/soc/software/bios/sdram.c

index e83483dbe3d0635f6f23c8ee767eaeaa11c7d53c..ba1bd216d64e7a581d37c62ac9a795f00f79da40 100644 (file)
@@ -582,7 +582,7 @@ int memtest(void)
                printf("Memtest bus failed: %d/%d errors\n", bus_errors, 2*128);
 
        data_errors = memtest_data();
-       if(bus_errors != 0)
+       if(data_errors != 0)
                printf("Memtest data failed: %d/%d errors\n", data_errors, MEMTEST_DATA_SIZE/4);
 
        addr_errors = memtest_addr();