src/examples/dumper/dumper.c in trema-0.2.5 vs src/examples/dumper/dumper.c in trema-0.2.6
- old
+ new
@@ -1,8 +1,8 @@
/*
* Sample OpenFlow event dumper.
- *
+ *
* Author: Yasunobu Chiba
*
* Copyright (C) 2008-2012 NEC Corporation
*
* This program is free software; you can redistribute it and/or modify
@@ -34,14 +34,16 @@
usage() {
printf(
"OpenFlow Event Dumper.\n"
"Usage: %s [OPTION]...\n"
"\n"
- " -n, --name=SERVICE_NAME service name\n"
- " -d, --daemonize run in the background\n"
- " -l, --logging_level=LEVEL set logging level\n"
- " -h, --help display this help and exit\n"
+ " -n, --name=SERVICE_NAME service name\n"
+ " -d, --daemonize run in the background\n"
+ " -l, --logging_level=LEVEL set logging level\n"
+ " -g, --syslog output log messages to syslog\n"
+ " -f, --logging_facility=FACILITY set syslog facility\n"
+ " -h, --help display this help and exit\n"
, get_executable_name()
);
}
@@ -323,10 +325,10 @@
element = element->next;
}
xfree( queues_head );
-}
+}
int
main( int argc, char *argv[] ) {
// Initialize the Trema world