[ar71xx] fix GPIO function select bit definitions (based on a patch by Jonas <jmajau...
[openwrt.git] / target / linux / generic-2.6 / patches-2.6.25 / 850-jffs2_erase_progress_indicator.patch
1 --- a/fs/jffs2/erase.c
2 +++ b/fs/jffs2/erase.c
3 @@ -35,6 +35,8 @@ static void jffs2_erase_block(struct jff
4 {
5 int ret;
6 uint32_t bad_offset;
7 + static char s[]="|/-\\", *p=s;
8 +
9 #ifdef __ECOS
10 ret = jffs2_flash_erase(c, jeb);
11 if (!ret) {
12 @@ -47,6 +49,11 @@ static void jffs2_erase_block(struct jff
13
14 D1(printk(KERN_DEBUG "jffs2_erase_block(): erase block %#08x (range %#08x-%#08x)\n",
15 jeb->offset, jeb->offset, jeb->offset + c->sector_size));
16 +
17 + printk("%c\b", *p);
18 + if (*++p==0)
19 + p=s;
20 +
21 instr = kmalloc(sizeof(struct erase_info) + sizeof(struct erase_priv_struct), GFP_KERNEL);
22 if (!instr) {
23 printk(KERN_WARNING "kmalloc for struct erase_info in jffs2_erase_block failed. Refiling block for later\n");
This page took 0.075101 seconds and 5 git commands to generate.