Skip to content

Commit

Permalink
[DLM] print bad length in assertion
Browse files Browse the repository at this point in the history
Print the violating name length in the assertion.

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
  • Loading branch information
David Teigland authored and Steven Whitehouse committed Aug 9, 2006
1 parent f438714 commit 5ff5191
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/dlm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5ff5191

Please sign in to comment.