]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report argument error in human form
authorMark Andrews <marka@isc.org>
Wed, 14 Feb 2018 07:32:49 +0000 (18:32 +1100)
committerMark Andrews <marka@isc.org>
Fri, 16 Feb 2018 06:49:02 +0000 (17:49 +1100)
bin/tests/name_test.c
util/copyrights

index 0934a4b7136ab9fab314bf34e0d553e0310938aa..2c88caf2c7b4be6931210c7ea253c1e600b23ae0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2005, 2007, 2009, 2015  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2005, 2007, 2009, 2015, 2018  Internet Systems Consortium, Inc. ("ISC")
  * Copyright (C) 1998-2001, 2003  Internet Software Consortium.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
@@ -15,8 +15,6 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: name_test.c,v 1.43 2009/09/02 23:48:01 tbox Exp $ */
-
 #include <config.h>
 
 #include <stdlib.h>
@@ -132,8 +130,8 @@ main(int argc, char *argv[]) {
                                                   dns_rootname, 0, NULL);
                        if (result != 0) {
                                fprintf(stderr,
-                                       "dns_name_fromtext() failed: %d\n",
-                                       result);
+                                       "dns_name_fromtext() failed: %s\n",
+                                       dns_result_totext(result));
                                exit(1);
                        }
                }
@@ -155,8 +153,8 @@ main(int argc, char *argv[]) {
                                                   0, NULL);
                        if (result != 0) {
                                fprintf(stderr,
-                                       "dns_name_fromtext() failed: %d\n",
-                                       result);
+                                       "dns_name_fromtext() failed: %s\n",
+                                       dns_result_totext(result));
                                exit(1);
                        }
                }
index 306793affccff8561391232c3ce43d1371dc2144..d2f1f1a305bcf537c5aa7d39cbd531d7a7ceb397 100644 (file)
 ./bin/tests/mem/win32/t_mem.vcxproj.in         X       2013,2015,2016,2017
 ./bin/tests/mem/win32/t_mem.vcxproj.user       X       2013
 ./bin/tests/mempool_test.c                     C       1999,2000,2001,2004,2007
-./bin/tests/name_test.c                                C       1998,1999,2000,2001,2003,2004,2005,2007,2009,2015
+./bin/tests/name_test.c                                C       1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2018
 ./bin/tests/named.conf                         CONF-C  1999,2000,2001,2004,2007,2011
 ./bin/tests/names/Makefile.in                  MAKE    1999,2000,2001,2002,2004,2007,2009,2012
 ./bin/tests/names/dns_name_compare_data                X       1999,2000,2001