diff options
author | David Teigland <teigland@redhat.com> | 2006-08-08 18:03:30 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-08-09 09:44:54 -0400 |
commit | 5ff519112af6a6dab0ad7f6b0b0a2dcfff273e5b (patch) | |
tree | 10c1178389f4f4e1d47be446c698830459eca330 /fs/dlm | |
parent | f4387149ec71fed11535b49400bad17d22fdc935 (diff) |
[DLM] print bad length in assertion
Print the violating name length in the assertion.
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm')
-rw-r--r-- | fs/dlm/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
100 | { | 100 | { |
101 | struct dlm_direntry *de; | 101 | struct dlm_direntry *de; |
102 | 102 | ||
103 | DLM_ASSERT(namelen <= DLM_RESNAME_MAXLEN,); | 103 | DLM_ASSERT(namelen <= DLM_RESNAME_MAXLEN, |
104 | printk("namelen = %d\n", namelen);); | ||
104 | 105 | ||
105 | de = kmalloc(sizeof(*de) + namelen, GFP_KERNEL); | 106 | de = kmalloc(sizeof(*de) + namelen, GFP_KERNEL); |
106 | if (de) | 107 | if (de) |