tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: KASSERTMSG fix



On Thu, Sep 08, 2011 at 02:06:29PM +0200, Jean-Yves Migeon wrote:
> I can't expect the kernel to be in a good shape when it calls panic(9)
> so allocating/copying strings is not possible. So it has to be done at
> compile time, or the use of panicstr has to be changed.

There is no reason to allocate a string, just reserve e.g. 160 Bytes or
so and use snprintf to that. But yes, the current usage is suboptimal.

Joerg


Home | Main Index | Thread Index | Old Index