Re: Boot Sequences and kprint.

From: Erik Mouw (J.A.K.Mouw@its.tudelft.nl)
Date: Sun Jan 30 2000 - 12:17:07 EST


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@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@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:25 EST