Changeset 9c12bcfd in rtems for testsuites


Ignore:
Timestamp:
Jan 7, 2019, 8:32:16 AM (11 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5b951175
Parents:
956d76cc
git-author:
Sebastian Huber <sebastian.huber@…> (01/07/19 08:32:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/07/19 08:49:16)
Message:

Fix format warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsrfsbitmap01/test.c

    r956d76cc r9c12bcfd  
    4949    if (rc > 0)
    5050    {
    51       printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
     51      printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%zu] is %s: ",
    5252            test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
    5353      printf ("FAIL (%s)\n", strerror (rc));
     
    5858    if (!result)
    5959    {
    60       printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%ld] is %s: ",
     60      printf (" %2d. Test bit %" PRId32 " in range (%" PRId32 ",%zu] is %s: ",
    6161              test, bit + count, bit, bit + size - 1, !set ? "set" : "clear");
    6262      printf (" %s\n", !result ? "pass" : "FAIL");
     
    6565  }
    6666
    67   printf (" %2d. Test bit range (%" PRId32 ",%ld] all %s: pass\n",
     67  printf (" %2d. Test bit range (%" PRId32 ",%zu] all %s: pass\n",
    6868          test, bit, bit + size - 1, set ? "set" : "clear");
    6969
     
    9292    rtems_rfs_bitmap_map_clear (control, bit + i);
    9393
    94   printf (" %2d. Cleared bits (%" PRId32 ", %ld] (%zd)\n",
     94  printf (" %2d. Cleared bits (%" PRId32 ", %zu] (%zu)\n",
    9595          test, bit, bit + size - 1, size);
    9696
     
    129129  }
    130130
    131   printf (" %2d. Alloc'ed all bits (%" PRId32 ", %ld] (%zd)\n",
     131  printf (" %2d. Alloc'ed all bits (%" PRId32 ", %zu] (%zu)\n",
    132132          test, bit, bit + size - 1, size);
    133133
     
    185185  handle.bnum = 1;
    186186
    187   printf ("\nRFS Bitmap Test : size = %zd (%zd)\n",
     187  printf ("\nRFS Bitmap Test : size = %zu (%zu)\n",
    188188          size, rtems_rfs_bitmap_elements (size));
    189189
     
    221221  rc = rtems_rfs_bitmap_map_alloc (&control, size - 1, &result, &bit);
    222222  result = result && (bit == (size - 1));
    223   printf ("  4. Find bit (size - 1) with seed = (size - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
     223  printf ("  4. Find bit (size - 1) with seed = (size - 1) (%zu): %s (%s): bit = %" PRId32 "\n",
    224224          size - 1, result ? "pass" : "FAIL", strerror (rc), bit);
    225225  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
     
    234234
    235235  rc = rtems_rfs_bitmap_map_test (&control, size - 1, &result);
    236   printf ("  6. Test bit (size - 1) (%zd): %s (%s)\n",
     236  printf ("  6. Test bit (size - 1) (%zu): %s (%s)\n",
    237237          size - 1, result ? "pass" : "FAIL", strerror (rc));
    238238  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
     
    285285
    286286  rc = rtems_rfs_bitmap_map_clear (&control, size - 1);
    287   printf (" 14. Clear bit (size - 1) (%zd): %s (%s)\n",
     287  printf (" 14. Clear bit (size - 1) (%zu): %s (%s)\n",
    288288          size - 1, rc == 0 ? "pass" : "FAIL", strerror (rc));
    289289  rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
     
    301301  rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
    302302  result = result && (bit == 0);
    303   printf (" 17. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
     303  printf (" 17. Find bit with seed = (size / 2) (%zu): %s (%s): bit = %" PRId32 "\n",
    304304          size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
    305305  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
    306306
    307307  rc = rtems_rfs_bitmap_map_clear (&control, size - 1);
    308   printf (" 18. Clear bit (size - 1) (%zd): %s, (%s)\n",
     308  printf (" 18. Clear bit (size - 1) (%zu): %s, (%s)\n",
    309309          size - 1, rc == 0 ? "pass" : "FAIL", strerror (rc));
    310310  rtems_rfs_exit_on_error (rc, false, &control, buffer.buffer);
     
    312312  rc = rtems_rfs_bitmap_map_alloc (&control, size / 2, &result, &bit);
    313313  result = result && (bit == (size - 1));
    314   printf (" 19. Find bit with seed = (size / 2) (%zd): %s (%s): bit = %" PRId32 "\n",
     314  printf (" 19. Find bit with seed = (size / 2) (%zu): %s (%s): bit = %" PRId32 "\n",
    315315          size / 2, result ? "pass" : "FAIL", strerror (rc), bit);
    316316  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
     
    322322  rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
    323323  result = result && (bit == 0);
    324   printf (" 21. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
     324  printf (" 21. Find bit with seed = ((size / 2) - 1) (%zu): %s (%s): bit = %" PRId32 "\n",
    325325          (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
    326326  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
    327327
    328328  rc = rtems_rfs_bitmap_map_clear (&control, size - 1);
    329   printf (" 22. Clear bit (size - 1) (%zd): %s (%s)\n",
     329  printf (" 22. Clear bit (size - 1) (%zu): %s (%s)\n",
    330330          size - 1, rc == 0 ? "pass" : "FAIL", strerror (rc));
    331331
    332332  rc = rtems_rfs_bitmap_map_alloc (&control, (size / 2) - 1, &result, &bit);
    333333  result = result && (bit == (size - 1));
    334   printf (" 23. Find bit with seed = ((size / 2) - 1) (%zd): %s (%s): bit = %" PRId32 "\n",
     334  printf (" 23. Find bit with seed = ((size / 2) - 1) (%zu): %s (%s): bit = %" PRId32 "\n",
    335335          (size / 2) - 1, result ? "pass" : "FAIL", strerror (rc), bit);
    336336  rtems_rfs_exit_on_error (rc, !result, &control, buffer.buffer);
     
    373373  clear = rtems_rfs_bitmap_map_free (&control);
    374374  result = clear == (last_bit - first_bit);
    375   printf (" 27. Check free count is %zd: %" PRId32 ": %s (%s)\n",
     375  printf (" 27. Check free count is %zu: %" PRId32 ": %s (%s)\n",
    376376          clear, last_bit - first_bit,
    377377          result ? "pass" : "FAIL", strerror (rc));
     
    379379  rc = rtems_rfs_bitmap_create_search (&control);
    380380  result = clear == rtems_rfs_bitmap_map_free (&control);
    381   printf (" 28. Create search check free count is %zd: %zd: %s (%s)\n",
     381  printf (" 28. Create search check free count is %zu: %zu: %s (%s)\n",
    382382          clear, rtems_rfs_bitmap_map_free (&control),
    383383          result ? "pass" : "FAIL", strerror (rc));
     
    455455  printf (" Bit set value       : %d\n", RTEMS_RFS_BITMAP_BIT_SET);
    456456  printf (" Bit clear value     : %d\n", RTEMS_RFS_BITMAP_BIT_CLEAR);
    457   printf (" Num bit per element : %zd\n", rtems_rfs_bitmap_element_bits ());
     457  printf (" Num bit per element : %zu\n", rtems_rfs_bitmap_element_bits ());
    458458
    459459#if INT_MAX >= 0x23984237
Note: See TracChangeset for help on using the changeset viewer.