db/{Count,Print}: use tag_print(), eliminate duplicate code

This commit is contained in:
Max Kellermann
2017-02-07 18:31:30 +01:00
parent a3e28c2d1a
commit 17097d96b7
3 changed files with 6 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ void
tag_print_values(Response &r, const Tag &tag)
{
for (const auto &i : tag)
r.Format("%s: %s\n", tag_item_names[i.type], i.value);
tag_print(r, i.type, i.value);
}
void