[rtems commit] spfreechain01/init.c: Use %zd for size_t to eliminate warning
Joel Sherrill
joel at rtems.org
Thu Sep 4 13:59:25 UTC 2014
Module: rtems
Branch: master
Commit: 9aa6ddf0ceab2bde0494d7d20ab9c95c71e214bd
Changeset: http://git.rtems.org/rtems/commit/?id=9aa6ddf0ceab2bde0494d7d20ab9c95c71e214bd
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Wed Sep 3 10:07:28 2014 -0500
spfreechain01/init.c: Use %zd for size_t to eliminate warning
---
testsuites/sptests/spfreechain01/init.c | 4 ++--
1 files 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;
}
More information about the vc
mailing list