Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses/director fix printf format strings



details:   https://anonhg.NetBSD.org/src/rev/c5e6c5ff3cee
branches:  trunk
changeset: 769602:c5e6c5ff3cee
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 15 16:25:17 2011 +0000

description:
fix printf format strings

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 20e0ce49ba15 -r c5e6c5ff3cee tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Thu Sep 15 15:34:19 2011 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Thu Sep 15 16:25:17 2011 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.11 2011/09/15 11:53:12 blymn Exp $        */
+/*     $NetBSD: testlang_parse.y,v 1.12 2011/09/15 16:25:17 christos Exp $     */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -1117,8 +1117,8 @@
                if ((byte_response->return_type == ret_byte) ||
                    (byte_response->return_type == ret_err) ||
                    (byte_response->return_type == ret_ok))
-                       err(1, "validate: expecting type %s, received type %s"
-                           " at line %d of file %s",
+                       err(1, "%s: expecting type %s, received type %s"
+                           " at line %zu of file %s", __func__,
                            returns_enum_names[command.returns[i].return_type],
                            returns_enum_names[byte_response->return_type],
                            line, cur_file);
@@ -1182,7 +1182,7 @@
 
        if (verbose) {
                fprintf(stderr,
-                   "validate_reference: return type of %s, value %s \n",
+                   "%s: return type of %s, value %s \n", __func__,
                    returns_enum_names[varp->type],
                    (const char *)varp->value);
        }



Home | Main Index | Thread Index | Old Index