Changeset 48b1e29 in rtems


Ignore:
Timestamp:
Aug 30, 2006, 1:18:40 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
3523321
Parents:
8a1ae87
Message:

2006-08-30 Joel Sherrill <joel@…>

  • libcsupport/src/utsname.c, libnetworking/libc/res_debug.c, libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c, librpc/src/rpc/svc_simple.c: Remove printf format warnings.
Location:
cpukit
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r8a1ae87 r48b1e29  
     12006-08-30      Joel Sherrill <joel@OARcorp.com>
     2
     3        * libcsupport/src/utsname.c, libnetworking/libc/res_debug.c,
     4        libnetworking/net/if_media.h, libnetworking/rtems/rtems_mii_ioctl.c,
     5        librpc/src/rpc/svc_simple.c: Remove printf format warnings.
     6
    172006-08-29      Joel Sherrill <joel@OARcorp.com>
    28
  • cpukit/libcsupport/src/utsname.c

    r8a1ae87 r48b1e29  
    4242  strcpy( name->sysname, "RTEMS" );
    4343
    44   sprintf( name->nodename, "Node %" PRId32, _Objects_Local_node );
     44  sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node );
    4545
    4646  strcpy( name->release, RTEMS_VERSION );
  • cpukit/libnetworking/libc/res_debug.c

    r8a1ae87 r48b1e29  
    9898static char rcsid[] = "$Id$";
    9999#endif /* LIBC_SCCS and not lint */
     100
     101#include <inttypes.h>
    100102
    101103#include <sys/types.h>
     
    533535
    534536        if (ns_format_ttl(value, nbuf, sizeof nbuf) < 0)
    535                 sprintf(nbuf, "%u", value);
     537                sprintf(nbuf, "%" PRIu32, value);
    536538        return (nbuf);
    537539}
  • cpukit/libnetworking/net/if_media.h

    r8a1ae87 r48b1e29  
    273273 */
    274274#define IFM_MAKEWORD(type, subtype, options, instance)                  \
    275         ((type) | (subtype) | (options) | ((instance) << IFM_ISHIFT))
     275        ((type) | (subtype) | (options) | ((uint32_t)(instance) << IFM_ISHIFT))
    276276#define IFM_MAKEMODE(mode) \
    277277        (((mode) << IFM_MSHIFT) & IFM_MMASK)
  • cpukit/libnetworking/rtems/rtems_mii_ioctl.c

    r8a1ae87 r48b1e29  
    1212
    1313#include <rtems.h>
     14#include <inttypes.h>
    1415
    1516#undef _KERNEL
     
    6263
    6364  return WHATPRINT (buf, bufsz,
    64                     "Ethernet [phy instance: %i]: (link %s, autoneg %s) -- media: %s%s",
    65                     IFM_INST (media),
     65                    "Ethernet [phy instance: %" PRId32 "]: (link %s, autoneg %s) -- media: %s%s",
     66                    (int32_t) IFM_INST (media),
    6667                    IFM_LINK_OK & media ? "ok" : "down",
    6768                    IFM_ANEG_DIS & media ? "off" : "on",
  • cpukit/librpc/src/rpc/svc_simple.c

    r8a1ae87 r48b1e29  
    4949#include <sys/socket.h>
    5050#include <netdb.h>
     51
     52#include <inttypes.h> /* for PRIxx printf formats */
    5153
    5254struct prog_lst {
     
    143145                        if (!svc_sendreply(atransp, lpl->p_outproc, outdata)) {
    144146                                (void) fprintf(stderr,
    145                                     "trouble replying to prog %d\n",
     147                                    "trouble replying to prog %" PRIu32 "\n",
    146148                                    lpl->p_prognum);
    147149                                exit(1);
Note: See TracChangeset for help on using the changeset viewer.