Module Name: src
Committed By: joerg
Date: Thu Mar 15 01:44:44 UTC 2012
Modified Files:
src/tests/lib/libc/stdio: t_printf.c t_scanf.c
Log Message:
Fix format strings to properly quote %.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libc/stdio/t_printf.c
cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/stdio/t_scanf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/stdio/t_printf.c
diff -u src/tests/lib/libc/stdio/t_printf.c:1.4 src/tests/lib/libc/stdio/t_printf.c:1.5
--- src/tests/lib/libc/stdio/t_printf.c:1.4 Sun Feb 26 23:14:26 2012
+++ src/tests/lib/libc/stdio/t_printf.c Thu Mar 15 01:44:44 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_printf.c,v 1.4 2012/02/26 23:14:26 christos Exp $ */
+/* $NetBSD: t_printf.c,v 1.5 2012/03/15 01:44:44 joerg Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@ ATF_TC_HEAD(snprintf_dotzero, tc)
{
atf_tc_set_md_var(tc, "descr", \
- "PR lib/32951: %.0f formats (0.0,0.5] to \"0.\"");
+ "PR lib/32951: %%.0f formats (0.0,0.5] to \"0.\"");
}
ATF_TC_BODY(snprintf_dotzero, tc)
Index: src/tests/lib/libc/stdio/t_scanf.c
diff -u src/tests/lib/libc/stdio/t_scanf.c:1.1 src/tests/lib/libc/stdio/t_scanf.c:1.2
--- src/tests/lib/libc/stdio/t_scanf.c:1.1 Fri Jul 8 06:38:04 2011
+++ src/tests/lib/libc/stdio/t_scanf.c Thu Mar 15 01:44:44 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: t_scanf.c,v 1.1 2011/07/08 06:38:04 jruoho Exp $ */
+/* $NetBSD: t_scanf.c,v 1.2 2012/03/15 01:44:44 joerg Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@ ATF_TC_HEAD(sscanf_neghex, tc)
{
atf_tc_set_md_var(tc, "descr", \
- "PR lib/21691: %i and %x fail with negative hex numbers");
+ "PR lib/21691: %%i and %%x fail with negative hex numbers");
}
ATF_TC_BODY(sscanf_neghex, tc)