Boot Sequences and kprint.
Erik Mouw
J.A.K.Mouw en its.tudelft.nl
Dom Ene 30 11:30:38 CST 2000
On Sat, 29 Jan 2000 16:41:05 +1100, fejed wrote:
> I'm fairly new to kernal modification, and I was wondering if ansi
> escape seqences can be used with kprint and if not, what would the
> result of changing kprint to printf and adding stdio.h, or is kprint
> only to write to syslogd? I hop I've said that right.
Of course you can try to use ANSI escape sequences, but it is of no use:
printk() is used to write debug messages which eventually end up in a
logfile. No need to fancy up debug messages. Besides: you can't assume
that every terminal understands ANSI escape sequences.
And no: you can't use printf() because we are in kernel mode; printf() is
for user mode.
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2785859 Fax: +31-15-2781843 Email J.A.K.Mouw en its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo en vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
Más información sobre la lista de distribución Ayuda