projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Catch missed formatting changes.
[openvswitch]
/
utilities
/
ovs-vsctl.c
diff --git
a/utilities/ovs-vsctl.c
b/utilities/ovs-vsctl.c
index 17ebdb41808fdc6deed6f97b9377df5e645c8097..76e896a0a01797a77c3f5b6c73738bb6cff577d5 100644
(file)
--- a/
utilities/ovs-vsctl.c
+++ b/
utilities/ovs-vsctl.c
@@
-41,9
+41,9
@@
#include "vswitchd/vswitch-idl.h"
#include "timeval.h"
#include "util.h"
#include "vswitchd/vswitch-idl.h"
#include "timeval.h"
#include "util.h"
-
#include "vlog.h"
#include "vlog.h"
-#define THIS_MODULE VLM_vsctl
+
+VLOG_DEFINE_THIS_MODULE(vsctl)
/* vsctl_fatal() also logs the error, so it is preferred in this file. */
#define ovs_fatal please_use_vsctl_fatal_instead_of_ovs_fatal
/* vsctl_fatal() also logs the error, so it is preferred in this file. */
#define ovs_fatal please_use_vsctl_fatal_instead_of_ovs_fatal
@@
-118,6
+118,7
@@
static void set_column(const struct vsctl_table_class *,
int
main(int argc, char *argv[])
{
int
main(int argc, char *argv[])
{
+ extern struct vlog_module VLM_reconnect;
struct ovsdb_idl *idl;
struct vsctl_command *commands;
size_t n_commands;
struct ovsdb_idl *idl;
struct vsctl_command *commands;
size_t n_commands;
@@
-125,8
+126,8
@@
main(int argc, char *argv[])
set_program_name(argv[0]);
signal(SIGPIPE, SIG_IGN);
set_program_name(argv[0]);
signal(SIGPIPE, SIG_IGN);
- vlog_set_levels(
VLM_ANY_MODULE
, VLF_CONSOLE, VLL_WARN);
- vlog_set_levels(VLM_reconnect, VLF_ANY_FACILITY, VLL_WARN);
+ vlog_set_levels(
NULL
, VLF_CONSOLE, VLL_WARN);
+ vlog_set_levels(
&
VLM_reconnect, VLF_ANY_FACILITY, VLL_WARN);
ovsrec_init();
/* Log our arguments. This is often valuable for debugging systems. */
ovsrec_init();
/* Log our arguments. This is often valuable for debugging systems. */
@@
-201,7
+202,7
@@
parse_options(int argc, char *argv[])
break;
case OPT_NO_SYSLOG:
break;
case OPT_NO_SYSLOG:
- vlog_set_levels(VLM_vsctl, VLF_SYSLOG, VLL_WARN);
+ vlog_set_levels(
&
VLM_vsctl, VLF_SYSLOG, VLL_WARN);
break;
case OPT_NO_WAIT:
break;
case OPT_NO_WAIT:
@@
-383,7
+384,7
@@
vsctl_fatal(const char *format, ...)
message = xvasprintf(format, args);
va_end(args);
message = xvasprintf(format, args);
va_end(args);
- vlog_set_levels(VLM_vsctl, VLF_CONSOLE, VLL_EMER);
+ vlog_set_levels(
&
VLM_vsctl, VLF_CONSOLE, VLL_EMER);
VLOG_ERR("%s", message);
ovs_error(0, "%s", message);
vsctl_exit(EXIT_FAILURE);
VLOG_ERR("%s", message);
ovs_error(0, "%s", message);
vsctl_exit(EXIT_FAILURE);