diff options
author | phk <phk@FreeBSD.org> | 1998-09-17 09:35:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-09-17 09:35:02 +0000 |
commit | 231bd37d3c3215f2bf6cccc1a4f6d79ac7e1b167 (patch) | |
tree | 28f16d9c354c723093e7fcf66c873381205685c1 /sys/netatm/spans/spans_util.c | |
parent | 399a16928fecfe7a1b87962aa2146351791bb090 (diff) | |
download | FreeBSD-src-231bd37d3c3215f2bf6cccc1a4f6d79ac7e1b167.zip FreeBSD-src-231bd37d3c3215f2bf6cccc1a4f6d79ac7e1b167.tar.gz |
Two patches from the HARP people:
Various Makefile related fixes.
-Wformat fixes.
Submitted by: Mike Spengler <mks@networkcs.com>
Diffstat (limited to 'sys/netatm/spans/spans_util.c')
-rw-r--r-- | sys/netatm/spans/spans_util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatm/spans/spans_util.c b/sys/netatm/spans/spans_util.c index 6d470e1..f3f0235 100644 --- a/sys/netatm/spans/spans_util.c +++ b/sys/netatm/spans/spans_util.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: spans_util.c,v 1.6 1998/08/26 23:29:10 mks Exp $ + * @(#) $Id: spans_util.c,v 1.1 1998/09/15 08:23:04 phk Exp $ * */ @@ -36,7 +36,7 @@ */ #ifndef lint -static char *RCSid = "@(#) $Id: spans_util.c,v 1.6 1998/08/26 23:29:10 mks Exp $"; +static char *RCSid = "@(#) $Id: spans_util.c,v 1.1 1998/09/15 08:23:04 phk Exp $"; #endif #include <netatm/kern_include.h> @@ -441,7 +441,7 @@ spans_addr_print(p) /* * Print and return the string */ - sprintf(strbuff, "%x.%x", ntohl(u1.w), ntohl(u2.w)); + sprintf(strbuff, "%lx.%lx", ntohl(u1.w), ntohl(u2.w)); return(strbuff); } @@ -468,7 +468,7 @@ spans_dump_buffer(m) KB_DATASTART(m, cp, caddr_t); for (i = 0; i < KB_LEN(m); i++) { if (i == 0) - printf(" bfr=0x%x: ", (int)m); + printf(" bfr=%p: ", m); printf("%x ", (u_char)*cp++); } printf("<end_bfr>\n"); |