On Fri, 14 March 2003 08:09:30 -0800, Randy.Dunlap wrote:> > I guess one of us needs some guidance here.> I thought that sizeof(*buf) == 1 here, not 4096. Anybody?> I don't see how sizeof() can determine the kmalloc-ed size,> so I would use BUF_SIZE instead, with> #define BUF_SIZE 4096

I'd love to say you're wrong, but you're not. New patch is below.FUNCTION_NAME_BUFSIZE should have less name collision than BUF_SIZE,but someone who knows intermezzo better than me might find a muchnicer name.