Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net socklen_t is not uint8_t, so don't print it as such.
details: https://anonhg.NetBSD.org/src/rev/9aee8213ee4d
branches: trunk
changeset: 330612:9aee8213ee4d
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jul 15 20:17:53 2014 +0000
description:
socklen_t is not uint8_t, so don't print it as such.
diffstat:
sys/net/link_proto.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (40 lines):
diff -r d9aa2a877fbb -r 9aee8213ee4d sys/net/link_proto.c
--- a/sys/net/link_proto.c Tue Jul 15 20:00:23 2014 +0000
+++ b/sys/net/link_proto.c Tue Jul 15 20:17:53 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: link_proto.c,v 1.15 2014/07/09 04:54:03 rtr Exp $ */
+/* $NetBSD: link_proto.c,v 1.16 2014/07/15 20:17:53 joerg Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.15 2014/07/09 04:54:03 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: link_proto.c,v 1.16 2014/07/15 20:17:53 joerg Exp $");
#include <sys/param.h>
#include <sys/socket.h>
@@ -362,8 +362,8 @@
if (len > socklen) {
sdl->sdl_len = socklen;
#ifdef DIAGNOSTIC
- printf("%s: too long: %" PRIu8 " > %" PRIu8 "\n", __func__, len,
- socklen);
+ printf("%s: too long: %u > %u\n", __func__, (u_int)len,
+ (u_int)socklen);
#endif
return NULL;
}
@@ -442,8 +442,8 @@
len = sockaddr_dl_measure(sdl->sdl_nlen, addrlen);
if (len > socklen) {
#ifdef DIAGNOSTIC
- printf("%s: too long: %" PRIu8 " > %" PRIu8 "\n", __func__, len,
- socklen);
+ printf("%s: too long: %u > %u\n", __func__, (u_int)len,
+ (u_int)socklen);
#endif
return NULL;
}
Home |
Main Index |
Thread Index |
Old Index