Skip to contentSkip to conversation

formatting and ftest cleanup

PATCH New Cyril Hrubis 1 participant 1 message Sep 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 formatting and ftest cleanup

Hi!
This is first part of testcases/kernel/fs/ftest/ cleanup. It fixes printf like formatting in pidns20.c and growfiles.c as well as huge number of bugs and code formatting issues in ftest01.c ftest02.c and ftest03.c.

Signature · 2 lines
Cyril Hrubis
[email protected]
testcases/kernel/containers/pidns/pidns20.c +1 -1
Index: ltp/testcases/kernel/containers/pidns/pidns20.c
===================================================================
@@ -224,7 +224,7 @@ int main(int argc, char *argv[])
 			tst_resm(TFAIL, "parent: user function is not called "\
 					"inside cinit");
 		else
-			tst_resm(TBROK, "parent: cinit is terminated by %s",\
+			tst_resm(TBROK, "parent: cinit is terminated by %i",\
 					WTERMSIG(status));
 	}
 
testcases/kernel/fs/doio/growfiles.c +3 -2
Index: ltp/testcases/kernel/fs/doio/growfiles.c
===================================================================
@@ -81,6 +81,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <string.h>
+#include <inttypes.h>
 #include "dataascii.h"
 #include "random_range.h"
 #include "databin.h"
@@ -2125,8 +2126,8 @@ long *curr_size_ptr;	/* BUG:14136 */
 			if( (io_type & LIO_IO_ASYNC_TYPES) || (io_type & LIO_RANDOM) ){
 				if( tmp != Woffset + grow_incr ){
 					if( Debug > 5 ){
-						printf("%s: %d DEBUG6 %s/%d: posix fudge, forcing tmp (%d) to match Woffset+grow_incr (%d)\n",
-						       Progname, Pid, __FILE__, __LINE__, tmp, Woffset+grow_incr);
+						printf("%s: %d DEBUG6 %s/%d: posix fudge, forcing tmp (%"PRId64") to match Woffset+grow_incr (%"PRId64")\n",
+						       Progname, Pid, __FILE__, __LINE__, (int64_t)tmp, (int64_t)Woffset+grow_incr);
 					}
 					tmp = Woffset + grow_incr;
 				}
testcases/kernel/fs/ftest/ftest01.c +118 -165

577 lines not on this page · raw message

testcases/kernel/fs/ftest/ftest02.c +80 -110

413 lines not on this page · raw message

testcases/kernel/fs/ftest/ftest03.c +135 -166

584 lines not on this page · raw message

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list