Re: printk format "%4.4s"

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: shinkoi2005a <shinkoi2005a@...>
Cc: <linux-kernel@...>
Date: Monday, September 17, 2007 - 4:16 am

On Sep 17, 2007, 2:57 +0200, shinkoi2005a <shinkoi2005a@gmail.com> wrote:

Yes it can.
The precision part of the format determines the max number
of characters to copy from the string.
The 4 byte signature array might not null terminated
so you must use the .4 in the format otherwise vsnprintf
might look over the buffer for the terminating '\0'.


Hmm, looks like you should believe the error messages
rather than blaming the code for buggy output ;-)

Like it says, the table seems corrupt, has invalid signature
and checksum.


-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
printk format "%4.4s", shinkoi2005a, (Sun Sep 16, 8:57 pm)
Re: printk format "%4.4s", Benny Halevy, (Mon Sep 17, 4:16 am)