
17 Jun
2011
17 Jun
'11
5:09 a.m.
Hi Mike,
On Fri, Jun 17, 2011 at 8:57 AM, Mike Frysinger vapier@gentoo.org wrote:
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 ...
Agree, I would sort it out as a seperate patch.
- printf("mmc erase failed\n\r");
no output strings should include \r in them
Opps... I would correct that.
Thanks, Lei