Changeset 6081ef3 in rtems


Ignore:
Timestamp:
Jun 9, 2017, 5:54:45 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f256685
Parents:
f7d0f5e
Message:

if_fxp: Include missing <inttypes.h>

Fix format warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/if_fxp.c

    rf7d0f5e r6081ef3  
    6464#include <rtems/rtems_bsdnet.h>
    6565#include <bsp.h>
     66#include <inttypes.h>
    6667
    6768#include <errno.h>
     
    939940        struct ifnet *ifp = &sc->sc_if;
    940941
    941         printf ("   Output packets:%-8lu", ifp->if_opackets);
    942         printf ("    Collisions:%-8lu", ifp->if_collisions);
    943         printf (" Output errors:%-8lu\n", ifp->if_oerrors);
    944         printf ("    Input packets:%-8lu", ifp->if_ipackets);
    945         printf ("  Input errors:%-8lu\n", ifp->if_ierrors);
     942        printf ("   Output packets:%-8" PRIu64, ifp->if_opackets);
     943        printf ("    Collisions:%-8" PRIu64, ifp->if_collisions);
     944        printf (" Output errors:%-8" PRIu64 "\n", ifp->if_oerrors);
     945        printf ("    Input packets:%-8" PRIu64, ifp->if_ipackets);
     946        printf ("  Input errors:%-8" PRIu64 "\n", ifp->if_ierrors);
    946947}
    947948
Note: See TracChangeset for help on using the changeset viewer.