summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx04
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-05-29 19:07:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-05-29 19:07:59 +0000
commit7b64b25b1940813e7252f394d4ac2f720abc1208 (patch)
tree0e05e632506a20b5b8ff970790b238a224f0ac7c /testsuites/psxtests/psx04
parent2003-05-29 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-7b64b25b1940813e7252f394d4ac2f720abc1208.tar.bz2
2003-05-29 Joel Sherrill <joel@OARcorp.com>
* psx02/init.c, psx04/init.c, psx13/test.c, psxchroot01/test.c, psxhdrs/pthread07.c, psxmsgq01/init.c, psxreaddir/test.c, psxtimer/psxtimer.c: Removed warnings.
Diffstat (limited to 'testsuites/psxtests/psx04')
-rw-r--r--testsuites/psxtests/psx04/init.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/testsuites/psxtests/psx04/init.c b/testsuites/psxtests/psx04/init.c
index b6b160ef21..182b3ec8ed 100644
--- a/testsuites/psxtests/psx04/init.c
+++ b/testsuites/psxtests/psx04/init.c
@@ -77,19 +77,20 @@ void *POSIX_Init(
status = sigemptyset( &act.sa_mask );
assert( !status );
- printf( "Init: sigemptyset - set= 0x%08x\n", act.sa_mask );
+ printf( "Init: sigemptyset - set= 0x%08x\n", (unsigned int) act.sa_mask );
/* test sigfillset following the above sigemptyset */
status = sigfillset( &act.sa_mask );
assert( !status );
- printf( "Init: sigfillset - set= 0x%08x\n", act.sa_mask );
+ printf( "Init: sigfillset - set= 0x%08x\n", (unsigned int) act.sa_mask );
/* test sigdelset */
status = sigdelset( &act.sa_mask, SIGUSR1 );
assert( !status );
- printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n", act.sa_mask );
+ printf( "Init: sigdelset - delete SIGUSR1 set= 0x%08x\n",
+ (unsigned int) act.sa_mask );
/* test sigismember - FALSE */
@@ -166,7 +167,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
- printf( "Init: Signals pending 0x%08x\n", pending_set );
+ printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
puts( "Init: send SIGUSR1 to process" );
status = kill( getpid(), SIGUSR1 );
@@ -174,7 +175,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
- printf( "Init: Signals pending 0x%08x\n", pending_set );
+ printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
puts( "Init: Unblock SIGUSR1" );
status = sigprocmask( SIG_UNBLOCK, &mask, NULL );
@@ -194,7 +195,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
- printf( "Init: Signals pending 0x%08x\n", pending_set );
+ printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
puts( "Init: sleep so the other task can block" );
status = sleep( 1 );
@@ -208,7 +209,7 @@ void *POSIX_Init(
status = sigpending( &pending_set );
assert( !status );
- printf( "Init: Signals pending 0x%08x\n", pending_set );
+ printf( "Init: Signals pending 0x%08x\n", (unsigned int) pending_set );
puts( "Init: sleep so the other task can catch signal" );
status = sleep( 1 );
@@ -272,13 +273,13 @@ void *POSIX_Init(
puts( "Init: Block SIGUSR1 and SIGUSR2 only" );
status = pthread_sigmask( SIG_SETMASK, &mask, &oset );
- printf( "Init: Previous blocked set was 0x%08x\n", oset );
+ printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset );
assert( !status );
/* test inquiry about current blocked set with pthread_sigmask */
status = pthread_sigmask( 0, NULL, &oset );
- printf( "Init: Current blocked set is 0x%08x\n", oset );
+ printf( "Init: Current blocked set is 0x%08x\n", (unsigned int) oset );
assert( !status );
/* return blocked mask to no signals blocked */
@@ -288,7 +289,7 @@ void *POSIX_Init(
puts( "Init: Unblock all signals" );
status = pthread_sigmask( SIG_SETMASK, &mask, &oset );
- printf( "Init: Previous blocked set was 0x%08x\n", oset );
+ printf( "Init: Previous blocked set was 0x%08x\n", (unsigned int) oset );
assert( !status );
/* test sigsuspend */