summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
71126d5)
This patch changes mtest to correctly count the overall errors and
print them even in the abort (Ctrl-C) case.
Signed-off-by: Stefan Roese <sr@denx.de>
ulong start, end;
vu_long *buf, *dummy;
ulong iteration_limit = 0;
ulong start, end;
vu_long *buf, *dummy;
ulong iteration_limit = 0;
ulong errs = 0; /* number of errors, or -1 if interrupted */
ulong pattern = 0;
int iteration;
ulong errs = 0; /* number of errors, or -1 if interrupted */
ulong pattern = 0;
int iteration;
}
if (errs == -1UL)
break;
}
if (errs == -1UL)
break;
if (errs == -1UL) {
/* Memory test was aborted - write a newline to finish off */
putc('\n');
if (errs == -1UL) {
/* Memory test was aborted - write a newline to finish off */
putc('\n');
- ret = 1;
- } else {
- printf("Tested %d iteration(s) with %lu errors.\n",
- iteration, errs);
- ret = errs != 0;
+ printf("Tested %d iteration(s) with %lu errors.\n", iteration, count);
}
#endif /* CONFIG_CMD_MEMTEST */
}
#endif /* CONFIG_CMD_MEMTEST */