Changeset 36d974ba in rtems


Ignore:
Timestamp:
Oct 22, 2017, 10:57:52 PM (2 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
88e84c22
Parents:
98c6d50
git-author:
Chris Johns <chrisj@…> (10/22/17 22:57:52)
git-committer:
Chris Johns <chrisj@…> (10/23/17 05:25:45)
Message:

testsuite: Remove warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/block06/init.c

    r98c6d50 r36d974ba  
    200200  else if ((out & RTEMS_EVENT_0) == 0)
    201201  {
    202     printf ("%s: wait: received wrong event: %08x", who, out);
     202    printf ("%s: wait: received wrong event: %08" PRIxrtems_event_set, who, out);
    203203  }
    204204  return sc;
     
    211211bdbuf_send_wait_event (const char* task, const char* msg, rtems_id id)
    212212{
    213   printf ("%s: %s: %08x: ", task, msg, id);
     213  printf ("%s: %s: %08" PRIxrtems_id ": ", task, msg, id);
    214214  return  bdbuf_test_print_sc (rtems_event_send (id, RTEMS_EVENT_0), true);
    215215}
     
    234234  else if ((out & RTEMS_EVENT_1) == 0)
    235235  {
    236     printf ("watch: received wrong event: %08x", out);
     236    printf ("watch: received wrong event: %08" PRIxrtems_event_set, out);
    237237  }
    238238  return sc;
     
    245245bdbuf_send_watch_event (const char* task, const char* msg, rtems_id id)
    246246{
    247   printf ("%s: %s: %08x: ", task, msg, id);
     247  printf ("%s: %s: %08" PRIxrtems_id ": ", task, msg, id);
    248248  return  bdbuf_test_print_sc (rtems_event_send (id, RTEMS_EVENT_1), true);
    249249}
     
    398398    case BDBUF_DISK_WAIT:
    399399      if (bdd->waiting)
    400         printf ("disk ioctl: bad waiter: %s:%08x\n",
     400        printf ("disk ioctl: bad waiter: %s:%08" PRIxrtems_id "\n",
    401401                           bdd->waiting_name, bdd->waiting);
    402402      bdd->waiting_name = "bdd";
     
    416416
    417417    case BDBUF_DISK_SLEEP:
    418       printf ("disk ioctl: sleeping: %d msecs\n",
     418      printf ("disk ioctl: sleeping: %" PRId32 " msecs\n",
    419419                         bdd->driver_sleep);
    420420      result = bdbuf_sleep (bdd->driver_sleep);
     
    422422
    423423    case BDBUF_DISK_BLOCKS_INORDER:
    424       printf ("disk ioctl: multi-block order check: count = %d\n",
    425                          req->bufnum);
     424      printf ("disk ioctl: multi-block order check: count = %" PRId32 "\n",
     425              req->bufnum);
    426426      for (b = 0; b < (req->bufnum - 1); b++)
    427427        if (req->bufs[b].block >= req->bufs[b + 1].block)
    428           printf ("disk ioctl: out of order: index:%d (%d >= %d\n",
    429                              b, req->bufs[b].block, req->bufs[b + 1].block);
     428          printf ("disk ioctl: out of order: index:%d "\
     429                  "(%" PRIdrtems_blkdev_bnum " >= %" PRIdrtems_blkdev_bnum "\n",
     430                  b, req->bufs[b].block, req->bufs[b + 1].block);
    430431      break;
    431432
     
    638639  rtems_status_code sc;
    639640
    640   printf ("creating task: %s: priority: %d: ",
     641  printf ("creating task: %s: priority: %" PRIdrtems_task_priority ": ",
    641642                     tc->name, priority);
    642643
     
    10651066  if (passed)
    10661067  {
    1067     printf ("%s: rtems_bdbuf_syncdev[%d:%d]: ",
    1068                        tc->name, i,
     1068    printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIuLEAST32 "]: ",
     1069                       tc->name,
    10691070                       tc->major,
    10701071                       tc->minor);
     
    11471148    bdbuf_set_disk_driver_action (tc, BDBUF_DISK_BLOCKS_INORDER);
    11481149
    1149     printf ("%s: rtems_bdbuf_syncdev[%d:%d]: checking order\n",
    1150                        tc->name, i,
     1150    printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIiLEAST32 "]: checking order\n",
     1151                       tc->name,
    11511152                       tc->major,
    11521153                       tc->minor);
    11531154    sc = rtems_bdbuf_syncdev (tc->dd);
    1154     printf ("%s: rtems_bdbuf_syncdev[%d:%d]: ",
    1155                        tc->name, i,
     1155    printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIuLEAST32 "]: ",
     1156                       tc->name,
    11561157                       tc->major,
    11571158                       tc->minor);
Note: See TracChangeset for help on using the changeset viewer.