summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/netflow/ng_netflow.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-01-20 13:28:39 +0000
committerglebius <glebius@FreeBSD.org>2005-01-20 13:28:39 +0000
commit2fa7cf8313c4e3636e511f67df4a3e1a80943a88 (patch)
tree1941a84fe619fb0e80fe873d2472c592909a6af8 /sys/netgraph/netflow/ng_netflow.c
parent5db530c8aabca404e51eae1fe0750261df871cc3 (diff)
downloadFreeBSD-src-2fa7cf8313c4e3636e511f67df4a3e1a80943a88.zip
FreeBSD-src-2fa7cf8313c4e3636e511f67df4a3e1a80943a88.tar.gz
Use log() instead of printf(), to reduce flood on console.
MFC after: 1 week
Diffstat (limited to 'sys/netgraph/netflow/ng_netflow.c')
-rw-r--r--sys/netgraph/netflow/ng_netflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netgraph/netflow/ng_netflow.c b/sys/netgraph/netflow/ng_netflow.c
index 8b61d97..5dd6d2b 100644
--- a/sys/netgraph/netflow/ng_netflow.c
+++ b/sys/netgraph/netflow/ng_netflow.c
@@ -35,6 +35,7 @@ static const char rcs_id[] =
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
+#include <sys/syslog.h>
#include <sys/ctype.h>
#include <net/if.h>
@@ -417,7 +418,7 @@ ng_netflow_rcvdata (hook_p hook, item_p item)
* Data arrived on export hook.
* This must not happen.
*/
- printf("ng_netflow: incoming data on export hook!\n");
+ log(LOG_ERR, "ng_netflow: incoming data on export hook!\n");
ERROUT(EINVAL);
};
OpenPOWER on IntegriCloud