Re: On text size and run time if config is "n", [PATCH 2/2] Colored kernel output (run3)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jan Engelhardt <jengelh@...>
Cc: Linux Kernel Mailing List <linux-kernel@...>, Ingo Molnar <mingo@...>
Date: Saturday, October 6, 2007 - 6:28 pm

On Sat, Oct 06, 2007 at 11:27:54PM +0200, Jan Engelhardt wrote:
[]

I thought, i was talking about *write() functions, that got one
additional unrelated, non config removable API change in face of
`unsigned int loglevel'.

Idea. Extend those macro defines before format string with one
additional macro, that will be empty, if config is NO and having
colour byte otherwise.

In the *write() functions, have

 color = str[0];
 ++str;

in case if config is YES. And nothing otherwise.


Sorry, i don't know much about stuff, you've presented:


so maybe i just am an ignorant. Anyway this:


have no compile or run time optimization possible.
____
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 2/2] Colored kernel output (run3), Jan Engelhardt, (Sat Oct 6, 4:10 pm)
Re: [PATCH 2/2] Colored kernel output (run3), Oleg Verych, (Sat Oct 6, 5:25 pm)
Re: [PATCH 2/2] Colored kernel output (run3), Jan Engelhardt, (Sat Oct 6, 5:27 pm)
Re: On text size and run time if config is "n", [PATCH 2/2] ..., Oleg Verych, (Sat Oct 6, 6:28 pm)