Module Name:    src
Committed By:   christos
Date:           Wed Jan 11 02:10:44 UTC 2017

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

Log Message:
fix hint.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/npf/npfctl/npfctl.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/npfctl.c
diff -u src/usr.sbin/npf/npfctl/npfctl.c:1.52 src/usr.sbin/npf/npfctl/npfctl.c:1.53
--- src/usr.sbin/npf/npfctl/npfctl.c:1.52	Thu Dec 29 15:48:50 2016
+++ src/usr.sbin/npf/npfctl/npfctl.c	Tue Jan 10 21:10:44 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: npfctl.c,v 1.52 2016/12/29 20:48:50 rmind Exp $	*/
+/*	$NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009-2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.52 2016/12/29 20:48:50 rmind Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.53 2017/01/11 02:10:44 christos Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -695,7 +695,8 @@ npfctl_open_dev(const char *path)
 	if (ver != NPF_VERSION) {
 		errx(EXIT_FAILURE,
 		    "incompatible NPF interface version (%d, kernel %d)\n"
-		    "Hint: update userland?", NPF_VERSION, ver);
+		    "Hint: update %s?", NPF_VERSION, ver, 
+		    NPF_VERSION > ver ? "userland" : "kernel");
 	}
 	return fd;
 }

Reply via email to