uboot nand erase 的显示错误修复

  修复文件/uboot/drivers/mtd/nand/nand_util.c文件如下代码段

                        /* output progress message only at whole percent
                         * steps to reduce the number of messages printed
                         * on (slow) serial consoles
                         */
                        if (percent != percent_complete) {
                                percent_complete = percent;

//                              printf("\rErasing at 0x%llx -- %3d%% complete.",
                                printf("\rErasing at 0x%x -- %3d%% complete.",
                                       erase.addr, percent);

                                if (opts->jffs2 && result == 0)
                                        printf(" Cleanmarker written at 0x%llx.",
                                               erase.addr);
                        }   

  修复前

  修复后

  

posted on 2013-04-17 11:24  plinx  阅读(1001)  评论(0编辑  收藏  举报

导航