Переглянути джерело

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;
 }