소스 검색

[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>
David Teigland 19 년 전
부모
커밋
5ff519112a
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      fs/dlm/memory.c

+ 2 - 1
fs/dlm/memory.c

@@ -100,7 +100,8 @@ struct dlm_direntry *allocate_direntry(struct dlm_ls *ls, int namelen)
 {
 {
 	struct dlm_direntry *de;
 	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);
 	de = kmalloc(sizeof(*de) + namelen, GFP_KERNEL);
 	if (de)
 	if (de)