X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fovsdb-error.c;h=d6b4576ea27b8b1a9685b766184af809a3fe8ec7;hb=4e6ca956f56b7a7f7284a4cd8788873ba57b229c;hp=c9221493dd8fce1dbb0f47007b0190d97908bf55;hpb=80af01eda87eaaf16369642d2733e561b3d56b71;p=openvswitch diff --git a/lib/ovsdb-error.c b/lib/ovsdb-error.c index c9221493..d6b4576e 100644 --- a/lib/ovsdb-error.c +++ b/lib/ovsdb-error.c @@ -25,8 +25,7 @@ #include "util.h" #include "vlog.h" -#define THIS_MODULE VLM_ovsdb_error -#include "vlog.h" +VLOG_DEFINE_THIS_MODULE(ovsdb_error); struct ovsdb_error { const char *tag; /* String for "error" member. */ @@ -87,7 +86,7 @@ ovsdb_syntax_error(const struct json *json, const char *tag, if (json) { /* XXX this is much too much information in some cases */ - error->syntax = json_to_string(json, 0); + error->syntax = json_to_string(json, JSSF_SORT); } return error; @@ -238,4 +237,3 @@ ovsdb_error_assert(struct ovsdb_error *error) ovsdb_error_destroy(error); } } -