From c3d4384a49512d2d5cebcd02ef82ab8e4ebd48f2 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 24 Sep 2022 23:11:34 +0100 Subject: store_descriptions: Improve debugging * src/descriptions_store.c (store_descriptions): Log the extension of each entry being stored. --- src/descriptions_store.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/descriptions_store.c b/src/descriptions_store.c index 2425d1b5..54eafd17 100644 --- a/src/descriptions_store.c +++ b/src/descriptions_store.c @@ -189,7 +189,8 @@ next_trace: best_name = desc->name; } - debug ("name = '%s', id = %c\n", desc->name, whatis_info->id); + debug ("name = '%s', ext = '%s', id = %c\n", + desc->name, whatis_info->ext, whatis_info->id); if (dbstore (dbf, whatis_info, desc->name) > 0) { gripe_bad_store (base, whatis_info->ext); free_mandata_struct (whatis_info); @@ -207,8 +208,9 @@ next_trace: whatis_info->pointer = xstrdup (best_name); - debug ("name = '%s', id = %c, pointer = '%s'\n", - name, whatis_info->id, whatis_info->pointer); + debug ("name = '%s', ext = '%s', id = %c, pointer = '%s'\n", + name, whatis_info->ext, whatis_info->id, + whatis_info->pointer); if (dbstore (dbf, whatis_info, name) > 0) { gripe_bad_store (base, whatis_info->ext); free (name); -- cgit v1.2.3