Skip to contentSkip to conversation

Kill unneccessary debug printk

DISCUSSION John Mock 2 participants 2 messages Oct 23, 2003

lore
Share & tools
lore

John Mock

author
#0 lore raw
Quoted 7 lines

Actually, that 'printk' is useful. As i understand it, the only way software suspend is going to work is that if the same video mode is used on resume as on booting. If one uses "vga=ask", then one can 'dmesg | grep' to generate a proper string for 'lilo -R' (which i already do to make sure the correct kernel gets resumed during testing). If i'm mistaken about needing to set VGA mode identically on resume, then i have no objection to removing the printk.

Oops, someone is using my debug printk :-(. I'll at least try to merge it with some other msg, so it does not waste full line.

Better yet, let's take this opportunity to do this more cleanly. How about having something like /sys/power/vmode (or /proc/...) contain that inforemation instead? With luck, it might even be few kernel bytes than the original printk (or at least not much more). (I know nothing about either /proc or /sys, so it would take me awhile to suggest a patch).

Thanks for the kind response.

				    -- JM
#1 lore raw

Hi!

Quoted 12 lines
Quoted 7 lines

Actually, that 'printk' is useful. As i understand it, the only way software suspend is going to work is that if the same video mode is used on resume as on booting. If one uses "vga=ask", then one can 'dmesg | grep' to generate a proper string for 'lilo -R' (which i already do to make sure the correct kernel gets resumed during testing). If i'm mistaken about needing to set VGA mode identically on resume, then i have no objection to removing the printk.

Oops, someone is using my debug printk :-(. I'll at least try to merge it with some other msg, so it does not waste full line.

Quoted 5 lines

Better yet, let's take this opportunity to do this more cleanly. How about having something like /sys/power/vmode (or /proc/...) contain that inforemation instead? With luck, it might even be few kernel bytes than the original printk (or at least not much more). (I know nothing about either /proc or /sys, so it would take me awhile to suggest a patch).

Well, you probably know about as much as I do. I'm afraid I'm just going to take the easy way out.
Pavel

Signature · 2 lines
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]