[PATCH v1 08/12] dl09/dl-load.c: Fix gcc 12 warning

Ryan Long ryan.long at oarcorp.com
Tue Aug 16 20:11:56 UTC 2022


Changed format of size_t variable being printed.

Updates #4662
---
 testsuites/libtests/dl09/dl-load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testsuites/libtests/dl09/dl-load.c b/testsuites/libtests/dl09/dl-load.c
index 1de7c8fa29..ce9708c3a3 100644
--- a/testsuites/libtests/dl09/dl-load.c
+++ b/testsuites/libtests/dl09/dl-load.c
@@ -171,7 +171,7 @@ static void dl_object_open (object_def* od, objects* o)
   if (od->space != 0)
   {
     o->space = malloc (od->space);
-    printf("space alloc: %s: %d: %p\n", od->name, od->space, o->space);
+    printf("space alloc: %s: %zd: %p\n", od->name, od->space, o->space);
     rtems_test_assert (o->space != NULL);
   }
   dl_load_dump ();
-- 
2.11.0



More information about the devel mailing list