Просмотр исходного кода

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 лет назад
Родитель
Сommit
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");
 		LM_ERR("String is empty!\n");
 		return -1;
 		return -1;
 	}
 	}
-	LM_DBG("Hashing %.*s!\n", hash_str.len, hash_str.s);
 
 
 	*hash = ds_get_hash(&hash_str, NULL);
 	*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;
 	return 0;
 }
 }