Subject: port-sparc64/26010: pf doesn't compile on sparc64
To: None <gnats-bugs@gnats.NetBSD.org>
From: Peter Postma <peter@pointless.nl>
List: netbsd-bugs
Date: 06/22/2004 18:51:13
>Number:         26010
>Category:       port-sparc64
>Synopsis:       pf doesn't compile on sparc64
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 22 16:52:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Peter Postma
>Release:        NetBSD 2.0F
>Organization:
>Environment:
System: NetBSD mercury.pointless.nl 2.0F NetBSD 2.0F (mercury) #2: Tue Jun 22 18:43:56 CEST 2004 peter@mercury.pointless.nl:/usr/obj/sys/arch/sparc64/compile/mercury sparc64
Architecture: sparc64
Machine: sparc64
>Description:
>How-To-Repeat:
>Fix:

Index: pf.c
===================================================================
RCS file: /cvsroot/src/sys/dist/pf/net/pf.c,v
retrieving revision 1.2
diff -u -r1.2 pf.c
--- pf.c	22 Jun 2004 14:17:07 -0000	1.2
+++ pf.c	22 Jun 2004 14:42:23 -0000
@@ -685,7 +685,8 @@
 #else
 			printf("pf: state insert failed: "
 			    "id: %016llx creatorid: %08x",
-			    be64toh(state->id), ntohl(state->creatorid));
+			    (unsigned long long)be64toh(state->id),
+			    ntohl(state->creatorid));
 #endif
 			if (state->sync_flags & PFSTATE_FROMSYNC)
 				printf(" (from sync)");
>Release-Note:
>Audit-Trail:
>Unformatted: