Re: [PATCH] Stop printk printing non-printable chars

Linus Torvalds
2004-06-18T21:15:29Z

On Fri, 18 Jun 2004 matthew-lkml@newtoncomputing.co.uk wrote:
>
> The main problem seems to be in ACPI, but I don't see any reason for
> printk to even consider printing _any_ non-printable characters at all.
> It makes all characters out of the range 32..126 (except for newline)
> print as a '?'.

How about emitting them as \xxx, so that you see what they are. And using
a case-statement to make it easy and clear when to do exceptions (I think
we should accept \t too, no?).

Linus