]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2590. [func] Report zone/class of "diff with no effect". [RT #19542]
authorMark Andrews <marka@isc.org>
Thu, 30 Apr 2009 06:53:10 +0000 (06:53 +0000)
committerMark Andrews <marka@isc.org>
Thu, 30 Apr 2009 06:53:10 +0000 (06:53 +0000)
CHANGES
lib/dns/diff.c

diff --git a/CHANGES b/CHANGES
index ca9bb5a9c06c9c935b95cea336d10ba1772704e4..9fb931506aa02c501c7593408b89d04e4902a86b 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+2590.  [func]          Report zone/class of "diff with no effect". [RT #19542]
+
 2589.  [bug]           dns_db_unregister() failed to clear '*dbimp'.
                        [RT #19626]
 
index 2c2c531b283742c7a45135646ee79aba4875f2ec..a64da709d69dffa6ba658557595ff20465125e6e 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: diff.c,v 1.20 2009/01/05 23:47:53 tbox Exp $ */
+/* $Id: diff.c,v 1.21 2009/04/30 06:53:10 marka Exp $ */
 
 /*! \file */
 
@@ -387,10 +387,22 @@ diff_apply(dns_diff_t *diff, dns_db_t *db, dns_dbversion_t *ver,
                                 * from a server that is not as careful.
                                 * Issue a warning and continue.
                                 */
-                               if (warn)
+                               if (warn) {
+                                       char classbuf[DNS_RDATATYPE_FORMATSIZE];
+                                       char namebuf[DNS_NAME_FORMATSIZE];
+
+                                       dns_name_format(dns_db_origin(db),
+                                                       namebuf,
+                                                       sizeof(namebuf));
+                                       dns_rdataclass_format(dns_db_class(db),
+                                                             classbuf,
+                                                             sizeof(classbuf));
                                        isc_log_write(DIFF_COMMON_LOGARGS,
                                                      ISC_LOG_WARNING,
-                                                     "update with no effect");
+                                                     "%s/%s: update with no "
+                                                     " effect", namebuf,
+                                                     classbuf);
+                               }
                        } else if (result == DNS_R_NXRRSET) {
                                /*
                                 * OK.