
17 Jun
2011
17 Jun
'11
2:57 a.m.
On Thursday, June 16, 2011 09:47:56 Lei Wen wrote:
- } else if (strcmp(argv[1], "erase") == 0) {
u32 cnt = simple_strtoul(argv[3], NULL, 16);
u32 n;
struct mmc *mmc = find_mmc_device(dev);
int blk = simple_strtoul(argv[2], NULL, 16);
if (!mmc) {
printf("no mmc device at slot %x\n", curr_device);
return 1;
}
printf("\nMMC erase: dev # %d, block # %d, count %d ... ",
curr_device, blk, cnt);
mmc_init(mmc);
this logic really needs to get cleaned up rather than every sub-mmc command doing the same thing over and over ...
- printf("mmc erase failed\n\r");
no output strings should include \r in them -mike