浏览代码

dispatcher(k): improved debug message

- when hashing due to alg 7, print the string to be hased as well as the
  hash code for it
Daniel-Constantin Mierla 13 年之前
父节点
当前提交
83a558fbad
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      modules_k/dispatcher/dispatch.c

+ 2 - 1
modules_k/dispatcher/dispatch.c

@@ -1171,9 +1171,10 @@ int ds_hash_pvar(struct sip_msg *msg, unsigned int *hash)
 		LM_ERR("String is empty!\n");
 		return -1;
 	}
-	LM_DBG("Hashing %.*s!\n", hash_str.len, hash_str.s);
 
 	*hash = ds_get_hash(&hash_str, NULL);
+	LM_DBG("Hashing of '%.*s' resulted in %u !\n", hash_str.len, hash_str.s,
+			*hash);
 
 	return 0;
 }