Re: [PATCH] [RFC] be more verbose when probing EDD
From: H. Peter Anvin
Date: Mon Dec 17 2007 - 19:22:51 EST
Alan Cox wrote:
Does printk support escape sequences? The last time I tried
printk("\e[1;35m omg ponies \e[0m"); that did not went too successful.
It should handle \r correctly. If not that is easy to fix.
Escape codes are bad and should not be used - you may have a serial
console and not be on a Linux console
It's not printk(), or the console, that's the issue...
Consider logging to a file, which is quite common.
Dumping formatting characters in there is a bit evil.
Instead of using \r and overwrite, something like
Testing foo... ok
printk(KERN_INFO "Testing foo... ");
foo();
printk("ok\n");
... really is a lot better. We used to do that a lot more.
-hpa
--
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/