projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stp: Log topology change events.
[openvswitch]
/
tests
/
test-stp.c
diff --git
a/tests/test-stp.c
b/tests/test-stp.c
index fecada712787351feb6d848bb43f799df47ce810..259dc74a3725df974d0eefc0662fe2c87ccf198f 100644
(file)
--- a/
tests/test-stp.c
+++ b/
tests/test-stp.c
@@
-25,6
+25,7
@@
#include <stdlib.h>
#include "ofpbuf.h"
#include "packets.h"
#include <stdlib.h>
#include "ofpbuf.h"
#include "packets.h"
+#include "vlog.h"
struct bpdu {
int port_no;
struct bpdu {
int port_no;
@@
-440,6
+441,9
@@
main(int argc, char *argv[])
FILE *input_file;
int i;
FILE *input_file;
int i;
+ vlog_set_pattern(VLF_CONSOLE, "%c|%p|%m");
+ vlog_set_levels(NULL, VLF_SYSLOG, VLL_OFF);
+
if (argc != 2) {
ovs_fatal(0, "usage: test-stp INPUT.STP\n");
}
if (argc != 2) {
ovs_fatal(0, "usage: test-stp INPUT.STP\n");
}