2006-08-30 Joel Sherrill <joel@OARcorp.com>

* 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.
This commit is contained in:
Joel Sherrill
2006-08-30 13:18:40 +00:00
parent 8a1ae878d4
commit 48b1e29a7d
6 changed files with 17 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* 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.
2006-08-29 Joel Sherrill <joel@OARcorp.com> 2006-08-29 Joel Sherrill <joel@OARcorp.com>
* libmisc/capture/capture-cli.c: Remove printf format warnings. * libmisc/capture/capture-cli.c: Remove printf format warnings.

View File

@@ -41,7 +41,7 @@ int uname(
strcpy( name->sysname, "RTEMS" ); strcpy( name->sysname, "RTEMS" );
sprintf( name->nodename, "Node %" PRId32, _Objects_Local_node ); sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node );
strcpy( name->release, RTEMS_VERSION ); strcpy( name->release, RTEMS_VERSION );

View File

@@ -98,6 +98,8 @@ static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
static char rcsid[] = "$Id$"; static char rcsid[] = "$Id$";
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
#include <inttypes.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
@@ -532,7 +534,7 @@ p_time(u_int32_t value) {
static char nbuf[40]; static char nbuf[40];
if (ns_format_ttl(value, nbuf, sizeof nbuf) < 0) if (ns_format_ttl(value, nbuf, sizeof nbuf) < 0)
sprintf(nbuf, "%u", value); sprintf(nbuf, "%" PRIu32, value);
return (nbuf); return (nbuf);
} }

View File

@@ -272,7 +272,7 @@ int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr,
* Macro to create a media word. * Macro to create a media word.
*/ */
#define IFM_MAKEWORD(type, subtype, options, instance) \ #define IFM_MAKEWORD(type, subtype, options, instance) \
((type) | (subtype) | (options) | ((instance) << IFM_ISHIFT)) ((type) | (subtype) | (options) | ((uint32_t)(instance) << IFM_ISHIFT))
#define IFM_MAKEMODE(mode) \ #define IFM_MAKEMODE(mode) \
(((mode) << IFM_MSHIFT) & IFM_MMASK) (((mode) << IFM_MSHIFT) & IFM_MMASK)

View File

@@ -11,6 +11,7 @@
/* Author: Till Straumann, <straumanatslacdotstandorddotedu>, 2005 */ /* Author: Till Straumann, <straumanatslacdotstandorddotedu>, 2005 */
#include <rtems.h> #include <rtems.h>
#include <inttypes.h>
#undef _KERNEL #undef _KERNEL
#undef KERNEL #undef KERNEL
@@ -61,8 +62,8 @@ rtems_ifmedia2str (int media, char *buf, int bufsz)
dupdesc = IFM_FDX & media ? " full-duplex" : " half-duplex"; dupdesc = IFM_FDX & media ? " full-duplex" : " half-duplex";
return WHATPRINT (buf, bufsz, return WHATPRINT (buf, bufsz,
"Ethernet [phy instance: %i]: (link %s, autoneg %s) -- media: %s%s", "Ethernet [phy instance: %" PRId32 "]: (link %s, autoneg %s) -- media: %s%s",
IFM_INST (media), (int32_t) IFM_INST (media),
IFM_LINK_OK & media ? "ok" : "down", IFM_LINK_OK & media ? "ok" : "down",
IFM_ANEG_DIS & media ? "off" : "on", IFM_ANEG_DIS & media ? "off" : "on",
mdesc, dupdesc ? dupdesc : ""); mdesc, dupdesc ? dupdesc : "");

View File

@@ -49,6 +49,8 @@ static char *rcsid = "$FreeBSD: src/lib/libc/rpc/svc_simple.c,v 1.9 1999/08/28 0
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#include <inttypes.h> /* for PRIxx printf formats */
struct prog_lst { struct prog_lst {
char *(*p_progname)(); char *(*p_progname)();
rpcprog_t p_prognum; rpcprog_t p_prognum;
@@ -142,7 +144,7 @@ universal(
return; return;
if (!svc_sendreply(atransp, lpl->p_outproc, outdata)) { if (!svc_sendreply(atransp, lpl->p_outproc, outdata)) {
(void) fprintf(stderr, (void) fprintf(stderr,
"trouble replying to prog %d\n", "trouble replying to prog %" PRIu32 "\n",
lpl->p_prognum); lpl->p_prognum);
exit(1); exit(1);
} }