Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/ipf/netinet fix printf formats
details: https://anonhg.NetBSD.org/src/rev/7b86b1c1da9c
branches: trunk
changeset: 773318:7b86b1c1da9c
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 30 20:51:50 2012 +0000
description:
fix printf formats
diffstat:
sys/dist/ipf/netinet/ip_dns_pxy.c | 2 +-
sys/dist/ipf/netinet/ip_sync.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r eda1739b710a -r 7b86b1c1da9c sys/dist/ipf/netinet/ip_dns_pxy.c
--- a/sys/dist/ipf/netinet/ip_dns_pxy.c Mon Jan 30 20:40:39 2012 +0000
+++ b/sys/dist/ipf/netinet/ip_dns_pxy.c Mon Jan 30 20:51:50 2012 +0000
@@ -196,7 +196,7 @@
aps->aps_psiz = sizeof(dnsinfo_t);
KMALLOCS(di, dnsinfo_t *, sizeof(dnsinfo_t));
if (di == NULL) {
- printf("ipf_dns_new:KMALLOCS(%d) failed\n", sizeof(*di));
+ printf("ipf_dns_new:KMALLOCS(%zu) failed\n", sizeof(*di));
return -1;
}
diff -r eda1739b710a -r 7b86b1c1da9c sys/dist/ipf/netinet/ip_sync.c
--- a/sys/dist/ipf/netinet/ip_sync.c Mon Jan 30 20:40:39 2012 +0000
+++ b/sys/dist/ipf/netinet/ip_sync.c Mon Jan 30 20:51:50 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_sync.c,v 1.16 2012/01/30 16:12:50 darrenr Exp $ */
+/* $NetBSD: ip_sync.c,v 1.17 2012/01/30 20:51:50 christos Exp $ */
/*
* Copyright (C) 2011 by Darren Reed.
@@ -100,7 +100,7 @@
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_sync.c,v 1.16 2012/01/30 16:12:50 darrenr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_sync.c,v 1.17 2012/01/30 20:51:50 christos Exp $");
#else
static const char rcsid[] = "@(#)Id: ip_sync.c,v 2.68.2.4 2012/01/29 05:30:36 darrenr Exp";
#endif
@@ -563,7 +563,7 @@
} else {
/* insufficient data, wait until next call */
if (softs->ipf_sync_debug > 2)
- printf("uiomove(data) %s %d bytes, got %d\n",
+ printf("uiomove(data) %s %d bytes, got %zu\n",
"insufficient data, need",
sh.sm_len, uio->uio_resid);
IPFERROR(110007);
Home |
Main Index |
Thread Index |
Old Index