Module Name:    src
Committed By:   christos
Date:           Sun May 14 21:38:23 UTC 2017

Modified Files:
        src/usr.sbin/npf/npfctl: npf_show.c

Log Message:
don't print decimal and parse hex!


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.sbin/npf/npfctl/npf_show.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/npf/npfctl/npf_show.c
diff -u src/usr.sbin/npf/npfctl/npf_show.c:1.23 src/usr.sbin/npf/npfctl/npf_show.c:1.24
--- src/usr.sbin/npf/npfctl/npf_show.c:1.23	Sat Jan 28 19:18:15 2017
+++ src/usr.sbin/npf/npfctl/npf_show.c	Sun May 14 17:38:23 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_show.c,v 1.23 2017/01/29 00:18:15 christos Exp $	*/
+/*	$NetBSD: npf_show.c,v 1.24 2017/05/14 21:38:23 christos Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_show.c,v 1.23 2017/01/29 00:18:15 christos Exp $");
+__RCSID("$NetBSD: npf_show.c,v 1.24 2017/05/14 21:38:23 christos Exp $");
 
 #include <sys/socket.h>
 #define	__FAVOR_BSD
@@ -341,7 +341,7 @@ static void
 npfctl_print_id(npf_conf_info_t *ctx, nl_rule_t *rl)
 {
 	uint64_t id = id = npf_rule_getid(rl);
-	fprintf(ctx->fp, "# id=\"%" PRIu64 "\" ", id);
+	fprintf(ctx->fp, "# id=\"%" PRIx64 "\" ", id);
 }
 
 static void

Reply via email to