From f93894135b61a965a10c0b332e74d3993b0f0746 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sat, 31 Aug 2024 06:48:10 -0700 Subject: [PATCH] print search keys to stdout otherwise it's way too annoying to grep Signed-off-by: William Casarin --- src/print_util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/print_util.h b/src/print_util.h index 6c77882..faa7fbd 100644 --- a/src/print_util.h +++ b/src/print_util.h @@ -3,7 +3,7 @@ static void ndb_print_text_search_key(struct ndb_text_search_key *key) { - fprintf(stderr,"K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", key->str_len, key->str, + printf("K<'%.*s' %" PRIu64 " %" PRIu64 " note_id:%" PRIu64 ">", (int)key->str_len, key->str, key->word_index, key->timestamp, key->note_id);