commit f93894135b61a965a10c0b332e74d3993b0f0746
parent da79a2b50f2635c232e5b19be854496554dbbebb
Author: William Casarin <jb55@jb55.com>
Date: Sat, 31 Aug 2024 06:48:10 -0700
print search keys to stdout
otherwise it's way too annoying to grep
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);