Re: [PATCH] make swsusp produce nicer screen output

Pavel Machek
2004-08-23T17:50:08Z

Hi!

> I made a small patch that makes swsusp produce a bit nicer screen output,
> it's still a little rough though.

Well, it looks nice, be sure to submit smooth version :-).

Pavel

> @@ -85,10 +85,17 @@
>
> static void free_some_memory(void)
> {
> - printk("Freeing memory: ");
> - while (shrink_all_memory(10000))
> - printk(".");
> - printk("|\n");
> + int i = 0;
> + char *p = "-\|/";
> +
> + printk("Freeing memory: ");
> + while (shrink_all_memory(10000)) {
> + printk("\b%c", p[i]);
> + i++;
> + if (i > 3)
> + i = 0;
> + }
> + printk("\bdone\n");
> }

I'd leave dots here. Its usefull to see if it done something or not.

--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms