Changeset a29bf16 in rtems


Ignore:
Timestamp:
Sep 25, 2007, 9:34:43 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
995e2c04
Parents:
21961089
Message:

2007-09-25 Joel Sherrill <joel.sherrill@…>

  • libchip/shmdr/dump.c, libchip/shmdr/shm_driver.h: Fix warnings.
Location:
c/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r21961089 ra29bf16  
     12007-09-25      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * libchip/shmdr/dump.c, libchip/shmdr/shm_driver.h: Fix warnings.
     4
    152007-09-25      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • c/src/libchip/shmdr/dump.c

    r21961089 ra29bf16  
    77 *  Output parameters: NONE
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2007.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    1919#include <rtems.h>
    2020#include <stdio.h>
     21#include <inttypes.h>
     22#include <rtems/bspIo.h>
    2123
    2224#include "shm_driver.h"
     
    2830  uint32_t    ticks_per_second;
    2931  uint32_t    seconds;
    30   int               packets_per_second;
     32  int         packets_per_second;
    3133
    3234  (void) rtems_clock_get( RTEMS_CLOCK_GET_TICKS_SINCE_BOOT, &ticks );
     
    4143    packets_per_second++;
    4244
    43   printf( "\n\nSHMDR STATISTICS (NODE %d)\n", Shm_Local_node );
    44   printf( "TICKS SINCE BOOT = %d\n", ticks );
    45   printf( "TICKS PER SECOND = %d\n", ticks_per_second );
    46   printf( "ISRs=%d\n",     Shm_Interrupt_count );
    47   printf( "RECV=%d\n",     Shm_Receive_message_count );
    48   printf( "NULL=%d\n",     Shm_Null_message_count );
    49   printf( "PKTS/SEC=%d\n", packets_per_second );
     45  printk( "\n\nSHMDR STATISTICS (NODE %" PRId32 ")\n", Shm_Local_node );
     46  printk( "TICKS SINCE BOOT = %" PRId32 "\n", ticks );
     47  printk( "TICKS PER SECOND = %" PRId32 "\n", ticks_per_second );
     48  printk( "ISRs=%" PRId32 "\n",     Shm_Interrupt_count );
     49  printk( "RECV=%" PRId32 "\n",     Shm_Receive_message_count );
     50  printk( "NULL=%" PRId32 "\n",     Shm_Null_message_count );
     51  printk( "PKTS/SEC=%" PRId32 "\n", packets_per_second );
    5052}
  • c/src/libchip/shmdr/shm_driver.h

    r21961089 ra29bf16  
    77 *  Processor board dependencies are in other files.
    88 *
    9  *  COPYRIGHT (c) 1989-1999.
     9 *  COPYRIGHT (c) 1989-2007.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    424424  vol_u32            length;   /* length (in bytes) of SHM    */
    425425  vol_u32            format;   /* SHM is big or little endian */
    426   vol_u32          (*convert)();/* neutral conversion routine */
     426  uint32_t         (*convert)();/* neutral conversion routine */
    427427  vol_u32            poll_intr;/* POLLED or INTR driven mode  */
    428428  void             (*cause_intr)( uint32_t);
Note: See TracChangeset for help on using the changeset viewer.