This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

kernel/tests diag_printf format patch


Hi,

Here's yet another tiny patch to fix a format string warning with
diag_printf - this time in kernel/current/tests/kcache2.c.

Index: packages/kernel/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/ChangeLog,v
retrieving revision 1.123
diff -u -u -r1.123 ChangeLog
--- packages/kernel/current/ChangeLog	27 Mar 2005 17:29:58 -0000	1.123
+++ packages/kernel/current/ChangeLog	21 Jun 2005 14:26:27 -0000
@@ -1,3 +1,8 @@
+2005-06-21  Peter Korsgaard  <jacmet@sunsite.dk>
+
+	* tests/kcache2.c (test_dcache_operation): Fixed compiler warnings
+	about formats strings for diag_printf.
+
 2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* tests/tm_basic.cxx (_run_all_tests): Fixed compiler warning.
Index: packages/kernel/current/tests/kcache2.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/kernel/current/tests/kcache2.c,v
retrieving revision 1.13
diff -u -u -r1.13 kcache2.c
--- packages/kernel/current/tests/kcache2.c	10 Feb 2003 21:04:00 -0000	1.13
+++ packages/kernel/current/tests/kcache2.c	21 Jun 2005 14:26:28 -0000
@@ -345,14 +345,14 @@
         if ((i >= 256) && (i < 256+HAL_DCACHE_SIZE/sizeof(*lp))) {
             if (lp[i] != (0xFF000000 + i)) {
                 if (++errs < 16) {
-                    diag_printf("Data inside test range changed - was: %x, is %x, index: %x\n",
+                    diag_printf("Data inside test range changed - was: %x, is %lx, index: %x\n",
                                 0xFF000000+i, lp[i], i);
                 }
             }
         } else {
             if (lp[i] != i) {
                 if (++errs < 16) {
-                    diag_printf("Data outside test range changed - was: %x, is %x, index: %x\n",
+                    diag_printf("Data outside test range changed - was: %x, is %lx, index: %x\n",
                                 i, lp[i], i);
                 }
             }
-- 
Bye, Peter Korsgaard

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]