[PATCH 21/23] spfreechain01/init.c: Use %zd for size_t to eliminate warning
Joel Sherrill
joel.sherrill at oarcorp.com
Wed Sep 3 15:26:15 UTC 2014
---
testsuites/sptests/spfreechain01/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testsuites/sptests/spfreechain01/init.c b/testsuites/sptests/spfreechain01/init.c
index 434c126..8f5e10f 100644
--- a/testsuites/sptests/spfreechain01/init.c
+++ b/testsuites/sptests/spfreechain01/init.c
@@ -51,7 +51,7 @@ bool my_freechain_extend_heap( Freechain_Control *freechain )
test_node *nodes = malloc(size);
if (!nodes) {
- printf( "INIT - Unable to allocate free chain of size: %d\n", size );
+ printf( "INIT - Unable to allocate free chain of size: %zd\n", size );
return NULL;
}
@@ -74,7 +74,7 @@ bool my_freechain_extend_workspace( Freechain_Control *freechain )
test_node *nodes = _Workspace_Allocate(size);
if (!nodes) {
- printf( "INIT - Unable to allocate free chain of size: %d\n", size );
+ printf( "INIT - Unable to allocate free chain of size: %zd\n", size );
return NULL;
}
--
1.9.3
More information about the devel
mailing list