Did away with lprintf all together now its called CtdlLogPrintf()
[citadel.git] / citadel / modules / fulltext / ft_wordbreaker.c
index 4a03e1b77c6289877ba42815a439bd0e925d4b11..aaa92a208052925c017fb0da64063c570a40bd4e 100644 (file)
@@ -43,6 +43,7 @@
 #include "control.h"
 #include "ft_wordbreaker.h"
 #include "crc16.h"
+#include "ctdl_module.h"
 
 /*
  * Noise words are not included in search indices.
@@ -173,7 +174,7 @@ void wordbreaker(char *text, int *num_tokens, int **tokens) {
                        /* extract the word */
                        word_len = word_end - word_start;
                        if (word_len >= sizeof word) {
-                               lprintf(CTDL_DEBUG, "Invalid word length: %d\n", word_len);
+                               CtdlLogPrintf(CTDL_DEBUG, "Invalid word length: %d\n", word_len);
                                safestrncpy(word, word_start, sizeof word);
                                word[(sizeof word) - 1] = 0;
                        }