Changeset 87bd3ee in rtems


Ignore:
Timestamp:
Nov 14, 2009, 9:54:45 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
c46c2b63
Parents:
1fcff14
Message:

2009-11-14 Ralf Corsépius <ralf.corsepius@…>

  • rtems++/Task1.cc: Eliminate more warnings.
Location:
testsuites/libtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r1fcff14 r87bd3ee  
     12009-11-14      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * rtems++/Task1.cc: Eliminate more warnings.
     4
    152009-11-14      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • testsuites/libtests/rtems++/Task1.cc

    r1fcff14 r87bd3ee  
    3434/* c.f. cpukit/rtems/include/rtems/rtems/modes.h */
    3535#define PRIXModes_Control PRIX32
     36#define PRIiModes_Control PRIi32
    3637/* rtems_mode is a typedef to Modes_Control */
    3738#define PRIXrtems_mode PRIXModes_Control
     39#define PRIirtems_mode PRIiModes_Control
     40
     41/* c.f. cpukit/score/include/rtems/score/isr.h */
     42#define PRIiISR_Level PRIi32
     43/* rtems_interrupt_level is a typedef to ISR_Level */
     44#define PRIirtems_interrupt_level PRIiISR_Level
    3845
    3946void Task1::body(rtems_task_argument argument)
     
    416423  printf("%s - get current interrupt level - ", self.name_string());
    417424  task_mode.get_interrupt_level(current_level);
    418   printf("%s, level is %i\n", task_mode.last_status_string(), current_level);
     425  printf("%s, level is %" PRIirtems_interrupt_level "\n", task_mode.last_status_string(), current_level);
    419426
    420427  printf("%s - set interrupt level to 102 - ", self.name_string());
     
    424431  printf("%s - set interrupt level to original level - ", self.name_string());
    425432  task_mode.set_interrupt_level(current_level, level);
    426   printf("%s, level was %i\n", task_mode.last_status_string(), level);
     433  printf("%s, level was %" PRIirtems_interrupt_level "\n", task_mode.last_status_string(), level);
    427434
    428435  printf("%s - set mode to original mode - ", self.name_string());
     
    673680           task_mode.asr_set(mode) ? "" : "NO_");
    674681  if (mask & RTEMS_INTERRUPT_MASK)
    675     printf("INTMASK=%i",
     682    printf("INTMASK=%" PRIirtems_mode,
    676683           mode & RTEMS_INTERRUPT_MASK);
    677684}
Note: See TracChangeset for help on using the changeset viewer.