From: David Teigland Date: Tue, 8 Aug 2006 22:03:30 +0000 (-0500) Subject: [DLM] print bad length in assertion X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5ff519112af6a6dab0ad7f6b0b0a2dcfff273e5b;p=linux-beck.git [DLM] print bad length in assertion Print the violating name length in the assertion. Signed-off-by: David Teigland Signed-off-by: Steven Whitehouse --- diff --git a/fs/dlm/memory.c b/fs/dlm/memory.c index 48dfc27861f4..989b608fd836 100644 --- a/fs/dlm/memory.c +++ b/fs/dlm/memory.c @@ -100,7 +100,8 @@ struct dlm_direntry *allocate_direntry(struct dlm_ls *ls, int namelen) { struct dlm_direntry *de; - DLM_ASSERT(namelen <= DLM_RESNAME_MAXLEN,); + DLM_ASSERT(namelen <= DLM_RESNAME_MAXLEN, + printk("namelen = %d\n", namelen);); de = kmalloc(sizeof(*de) + namelen, GFP_KERNEL); if (de)