]> 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>
Thu, 15 Feb 2018 23:19:57 +0000 (10:19 +1100)
bin/tests/name_test.c
util/copyrights

index 1a154fe496dd55e3e4cba016aeefb278cf9bd056..57081c19c1f340b90f43006be578b8926baacf54 100644 (file)
@@ -1,13 +1,11 @@
 /*
- * Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2017  Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 1998-2001, 2003-2005, 2007, 2009, 2015-2018  Internet Systems Consortium, Inc. ("ISC")
  *
  * This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-/* $Id: name_test.c,v 1.43 2009/09/02 23:48:01 tbox Exp $ */
-
 #include <config.h>
 
 #include <stdlib.h>
@@ -123,8 +121,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);
                        }
                        origin = &oname.name;
@@ -147,8 +145,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 144340248a9b03ba3c1ebfe9f7aab06ccbd1c72d..2d8375ccd776c24e70e1082cc501ab7579346050 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,2016
-./bin/tests/name_test.c                                C       1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017
+./bin/tests/name_test.c C 1998,1999,2000,2001,2003,2004,2005,2007,2009,2015,2016,2017,2018
 ./bin/tests/named.conf                         CONF-C  1999,2000,2001,2004,2007,2011,2015,2016
 ./bin/tests/names/Makefile.in                  MAKE    1999,2000,2001,2002,2004,2007,2009,2012,2014,2016,2017
 ./bin/tests/names/dns_name_compare_data                X       1999,2000,2001