浏览代码

cfi_flash: flinfo: allow user interrupt in flash print info fn

flashes getting larger, users more impatient.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Stefan Roese <sr@denx.de>
Kim Phillips 14 年之前
父节点
当前提交
2e97394a6d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/mtd/cfi_flash.c

+ 2 - 0
drivers/mtd/cfi_flash.c

@@ -1159,6 +1159,8 @@ void flash_print_info (flash_info_t * info)
 
 	puts ("\n  Sector Start Addresses:");
 	for (i = 0; i < info->sector_count; ++i) {
+		if (ctrlc())
+			return;
 		if ((i % 5) == 0)
 			printf ("\n");
 #ifdef CONFIG_SYS_FLASH_EMPTY_INFO