Module Name:    src
Committed By:   christos
Date:           Mon Jan 30 20:51:50 UTC 2012

Modified Files:
        src/sys/dist/ipf/netinet: ip_dns_pxy.c ip_sync.c

Log Message:
fix printf formats


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/dist/ipf/netinet/ip_dns_pxy.c
cvs rdiff -u -r1.16 -r1.17 src/sys/dist/ipf/netinet/ip_sync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dist/ipf/netinet/ip_dns_pxy.c
diff -u src/sys/dist/ipf/netinet/ip_dns_pxy.c:1.1.1.1 src/sys/dist/ipf/netinet/ip_dns_pxy.c:1.2
--- src/sys/dist/ipf/netinet/ip_dns_pxy.c:1.1.1.1	Mon Jan 30 11:05:27 2012
+++ src/sys/dist/ipf/netinet/ip_dns_pxy.c	Mon Jan 30 15:51:50 2012
@@ -196,7 +196,7 @@ ipf_p_dns_new(arg, fin, aps, nat)
 	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;
         }
 

Index: src/sys/dist/ipf/netinet/ip_sync.c
diff -u src/sys/dist/ipf/netinet/ip_sync.c:1.16 src/sys/dist/ipf/netinet/ip_sync.c:1.17
--- src/sys/dist/ipf/netinet/ip_sync.c:1.16	Mon Jan 30 11:12:50 2012
+++ src/sys/dist/ipf/netinet/ip_sync.c	Mon Jan 30 15:51:50 2012
@@ -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 @@ struct file;
 #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 @@ ipf_sync_write(softc, uio)
 		} 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);

Reply via email to