From: Subrata <sub...@us...> - 2009-10-26 14:55:57
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/getpgrp In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12243/ltp/testcases/kernel/syscalls/getpgrp Modified Files: getpgrp01.c Log Message: Printf-style format string warnings (TEST_RETURN related): this patch fixes some printf-format string warnings, concerning the TEST_RETURN variable. TEST_RETURN is declared as "long", so it is advisable to use "%ld" in printf format string to avoid undefined behaviour. Note that this patch is not complete - it fixes the warnings in files near the beginning of the alphabet only. Signed-off-by: Jiri Palecek <jpa...@we...>. Index: getpgrp01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/getpgrp/getpgrp01.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** getpgrp01.c 23 Mar 2009 13:35:45 -0000 1.5 --- getpgrp01.c 26 Oct 2009 14:55:47 -0000 1.6 *************** *** 171,175 **** if (STD_FUNCTIONAL_TEST) { /* No Verification test, yet... */ ! tst_resm(TPASS, "getpgrp() returned %d", TEST_RETURN); } --- 171,175 ---- if (STD_FUNCTIONAL_TEST) { /* No Verification test, yet... */ ! tst_resm(TPASS, "getpgrp() returned %ld", TEST_RETURN); } |