[DLM] print bad length in assertion
authorDavid Teigland <teigland@redhat.com>
Tue, 8 Aug 2006 22:03:30 +0000 (17:03 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 9 Aug 2006 13:44:54 +0000 (09:44 -0400)
Print the violating name length in the assertion.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/dlm/memory.c

index 48dfc27..989b608 100644 (file)
@@ -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)