Subject: kern/20314: Error in libsa/rarp.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <root@Krille.Update.UU.SE>
List: netbsd-bugs
Date: 02/12/2003 16:19:12
>Number:         20314
>Category:       kern
>Synopsis:       libsa/rarp.c error if RARP_DEBUG is defined.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 12 07:20:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Johnny Billquist
>Release:        NetBSD 1.6N
>Organization:
Update
>Environment:
System: NetBSD Krille.Update.UU.SE 1.6N NetBSD 1.6N (Krille) #51: Thu Feb 6 20:02:21 CET 2003 root@Krille.Update.UU.SE:/sys/arch/vax/compile/Krille vax
Architecture: vax
Machine: vax
>Description:
If RARP_DEBUG is defined, compilation of libsa will fail because of type
error in a printf.
>How-To-Repeat:
Define RARP_DEBUG and try compiling libsa.
>Fix:
Index: rarp.c
===================================================================
RCS file: /cvsroot/src/sys/lib/libsa/rarp.c,v
retrieving revision 1.20
diff -r1.20 rarp.c
200c200
< 			printf("bad len=%d\n", n);
---
> 			printf("bad len=%d\n", (int)n);

>Release-Note:
>Audit-Trail:
>Unformatted: