Re: [PATCH] make swsusp produce nicer screen output

From: Pavel Machek
Date: Mon Aug 23 2004 - 12:53:06 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/