]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 19 Jun 2018 12:01:57 +0000 (21:01 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jun 2018 06:25:10 +0000 (08:25 +0200)
src/resolve/resolved-dns-rr.c

index b993223145043858fb0245dceac1738dad86eb06..cfd0ed214db675feb4c6ff40fcc851938e4c5126 100644 (file)
@@ -331,7 +331,7 @@ char* dns_resource_key_to_string(const DnsResourceKey *key, char *buf, size_t bu
         snprintf(buf, buf_size, "%s %s%s%.0u %s%s%.0u",
                  dns_resource_key_name(key),
                  strempty(c), c ? "" : "CLASS", c ? 0 : key->class,
-                 strempty(t), t ? "" : "TYPE", t ? 0 : key->class);
+                 strempty(t), t ? "" : "TYPE", t ? 0 : key->type);
 
         return ans;
 }