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

From: Pekka Pietikainen
Date: Fri Jun 18 2004 - 17:33:20 EST


On Fri, Jun 18, 2004 at 11:32:52PM +0200, Jan-Benedict Glaw wrote:
> > It makes all characters out of the range 32..126 (except for newline)
> > print as a '?'.
>
> I don't see why that's needed. I'd say let's better fix ACPI to put
> those strings as a hexdump or something like that.
There's actually some other cases where doing the escaping would be a
good idea.

Try grabbing an old a.out binary, renaming it to something like
\n<0>Oops: ,running it and see what happens...

Combined with an old-enough terminal emulator there could actually
be a bit more trouble than a messed-up screen...

--
Pekka Pietikainen
-
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/