Changeset 3f5d4e9 in rtems


Ignore:
Timestamp:
Jan 10, 2018, 6:48:49 AM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
5b94266
Parents:
0d08844
git-author:
Sebastian Huber <sebastian.huber@…> (01/10/18 06:48:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/15/18 06:22:29)
Message:

bsp/mvme167: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme167/network/network.c

    r0d08844 r3f5d4e9  
    5353
    5454#include <bsp.h>
     55#include <inttypes.h>
    5556#include <stdio.h>
    5657#include <string.h>
     
    138139static void uti596_addCmd ( i596_cmd * );
    139140static void uti596_addPolledCmd ( i596_cmd * );
    140 static void uti596_dump_scb ( void );
    141141static int uti596_setScpAndScb ( uti596_softc_ * );
    142142static int uti596_diagnose ( void );
     
    666666#endif
    667667
     668#if defined(DBG_STAT) || !defined(IGNORE_NO_RFA)
    668669/*
    669670 *  uti596_dump_scb
     
    684685  printk(("cmd 0x%x\n",(int)uti596_softc.scb.pCmd))
    685686  printk(("rfd 0x%x\n",(int)uti596_softc.scb.pRfd))
    686   printk(("crc_err 0x%x\n",uti596_softc.scb.crc_err))
    687   printk(("align_err 0x%x\n",uti596_softc.scb.align_err))
    688   printk(("resource_err 0x%x\n",uti596_softc.scb.resource_err ))
    689   printk(("over_err 0x%x\n",uti596_softc.scb.over_err))
    690   printk(("rcvdt_err 0x%x\n",uti596_softc.scb.rcvdt_err))
    691   printk(("short_err 0x%x\n",uti596_softc.scb.short_err))
     687  printk(("crc_err 0x%" PRIx32 "\n",uti596_softc.scb.crc_err))
     688  printk(("align_err 0x%" PRIx32 "\n",uti596_softc.scb.align_err))
     689  printk(("resource_err 0x%" PRIx32 "\n",uti596_softc.scb.resource_err ))
     690  printk(("over_err 0x%" PRIx32 "\n",uti596_softc.scb.over_err))
     691  printk(("rcvdt_err 0x%" PRIx32 "\n",uti596_softc.scb.rcvdt_err))
     692  printk(("short_err 0x%" PRIx32 "\n",uti596_softc.scb.short_err))
    692693  printk(("t_on 0x%x\n",uti596_softc.scb.t_on))
    693694  printk(("t_off 0x%x\n",uti596_softc.scb.t_off))
    694695}
     696#endif
    695697
    696698/*
     
    10031005
    10041006  /* Padding used to fill short tx frames */
    1005   memset ( &sc->zeroes, 0, 64);
     1007  memset ( RTEMS_DEVOLATILE( char *, sc->zeroes ), 0, 64);
    10061008
    10071009  /* now need ISR  */
     
    10721074)
    10731075{
    1074   rtems_isr_entry dummy;
    1075 
    10761076  printk(("uti596_initialize_hardware: begins\n"))
    10771077
     
    10941094   * calls rtems_interrupt_catch
    10951095   */
    1096   dummy = (rtems_isr_entry) set_vector( uti596_DynamicInterruptHandler, 0x57, 1 );
     1096  set_vector( uti596_DynamicInterruptHandler, 0x57, 1 );
    10971097
    10981098  /* Initialize the 82596 memory */
     
    11431143
    11441144    if ( status_code != RTEMS_SUCCESSFUL ) {
    1145       printk(("****ERROR:Could NOT send event to tid 0x%x : %s\n",
     1145      printk(("****ERROR:Could NOT send event to tid 0x%" PRIx32 " : %s\n",
    11461146             sc->txDaemonTid, rtems_status_text (status_code) ))
    11471147    }
     
    16391639  uti596_softc_ *sc = &uti596_softc;                            /* device dependent data structure */
    16401640  struct ifnet * ifp = (struct ifnet *)&sc->arpcom.ac_if;       /* ifnet structure */
    1641   unsigned char j1;    /* State of J1 jumpers */
    16421641  int unitNumber;
    16431642  char *unitName;
    16441643#if defined(mvme167)
     1644  unsigned char j1;    /* State of J1 jumpers */
    16451645  char *pAddr;
    16461646  int addr;
     
    16821682   */
    16831683
     1684#if defined(mvme167)
    16841685  /* Read the J1 header */
    16851686  j1 = (unsigned char)(lcsr->vector_base & 0xFF);
    16861687
    1687 #if defined(mvme167)
    16881688  if ( !(j1 & 0x10) ) {
    16891689        /* Jumper J1-4 is on, configure from NVRAM */
     
    21202120
    21212121    rtems_clock_get_tod(&tm_struct);
    2122     printk(("reset daemon: Resetting NIC @ %d:%d:%d \n",
     2122    printk(("reset daemon: Resetting NIC @ %" PRIu32 ":%" PRIu32 ":%" PRIu32 " \n",
    21232123           tm_struct.hour, tm_struct.minute, tm_struct.second))
    21242124
     
    23742374
    23752375            if ( sc != RTEMS_SUCCESSFUL ) {
    2376               printk(("****ERROR:Could NOT send event to tid 0x%x : %s\n",
     2376              printk(("****ERROR:Could NOT send event to tid 0x%" PRIu32 " : %s\n",
    23772377                     uti596_softc.txDaemonTid, rtems_status_text (sc) ))
    23782378            }
     
    24382438                                 INTERRUPT_EVENT);
    24392439          if ( sc != RTEMS_SUCCESSFUL ) {
    2440             printk(("****ERROR:Could NOT send event to tid 0x%x : %s\n",
     2440            printk(("****ERROR:Could NOT send event to tid 0x%" PRIu32 " : %s\n",
    24412441                                         uti596_softc.txDaemonTid, rtems_status_text (sc) ))
    24422442          }
Note: See TracChangeset for help on using the changeset viewer.