summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-09-24 23:11:34 +0100
committerColin Watson <cjwatson@debian.org>2022-09-24 23:11:34 +0100
commitc3d4384a49512d2d5cebcd02ef82ab8e4ebd48f2 (patch)
treec2409567a76e78976f71683c7ee3f04e61f9f9cb
parent3f3ab56eea58b1358523a06468f63c619f08bc60 (diff)
store_descriptions: Improve debugging
* src/descriptions_store.c (store_descriptions): Log the extension of each entry being stored.
-rw-r--r--src/descriptions_store.c8
1 files changed, 5 insertions, 3 deletions
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);