apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr-util/test testrmm.c
Date Tue, 15 Apr 2003 14:43:17 GMT
trawick     2003/04/15 07:43:17

  Modified:    test     testrmm.c
  Log:
  use proper format string for apr_size_t
  
  (apr_size_t not always int)
  
  Revision  Changes    Path
  1.3       +4 -2      apr-util/test/testrmm.c
  
  Index: testrmm.c
  ===================================================================
  RCS file: /home/cvs/apr-util/test/testrmm.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- testrmm.c	1 Jan 2003 00:02:22 -0000	1.2
  +++ testrmm.c	15 Apr 2003 14:43:17 -0000	1.3
  @@ -110,7 +110,8 @@
       fprintf(stdout, "OK\n");
   
       fragsize = SHARED_SIZE / FRAG_COUNT;
  -    printf("Creating each fragment of size %d................", fragsize);
  +    printf("Creating each fragment of size %" APR_SIZE_T_FMT "................",
  +           fragsize);
       off = apr_palloc(pool, FRAG_COUNT * sizeof(apr_rmm_off_t));
       for (i = 0; i < FRAG_COUNT; i++) {
           off[i] = apr_rmm_malloc(rmm, fragsize);
  @@ -164,7 +165,8 @@
       apr_rmm_free(rmm, off[0]);
       fprintf(stdout, "OK\n");
   
  -    printf("Creating each fragment of size %d (again)........", fragsize);
  +    printf("Creating each fragment of size %" APR_SIZE_T_FMT " (again)........",
  +           fragsize);
       for (i = 0; i < FRAG_COUNT; i++) {
           off[i] = apr_rmm_malloc(rmm, fragsize);
       } 
  
  
  

Mime
View raw message