Fix buildkernel when pfsync(4) is compiled into an x86_64 kernel.
authorSascha Wildner <saw@online.de>
Tue, 28 Sep 2010 19:44:33 +0000 (21:44 +0200)
committerSascha Wildner <saw@online.de>
Tue, 28 Sep 2010 19:44:33 +0000 (21:44 +0200)
Reported-by: Dheeraj Reddy <dheerajr@gmail.com>
sys/net/pf/if_pfsync.c

index 1253cf9..766328b 100644 (file)
@@ -558,11 +558,11 @@ pfsync_input(struct mbuf *m, ...)
                        if (sfail) {
                                if (pf_status.debug >= PF_DEBUG_MISC)
                                        kprintf("pfsync: %s stale update "
-                                           "(%d) id: %016llx "
+                                           "(%d) id: %016jx "
                                            "creatorid: %08x\n",
                                            (sfail < 7 ?  "ignoring"
                                             : "partial"), sfail,
-                                           be64toh(st->id),
+                                           (uintmax_t)be64toh(st->id),
                                            ntohl(st->creatorid));
                                pfsyncstats.pfsyncs_badstate++;