]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/json: disentangle flag mixup
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 6 May 2022 12:37:01 +0000 (14:37 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 7 May 2022 02:41:57 +0000 (11:41 +0900)
_DEBUG and _RELAX had the same value… I'm not sure what the effect
of this is.

src/shared/json.h

index 8760354b66158f41a984b8c9977c1c09ce18093b..91d02a911e19588199abf0c7bf477e9fa40c308d 100644 (file)
@@ -331,9 +331,9 @@ typedef enum JsonDispatchFlags {
         JSON_SAFE       = 1 << 3, /* Don't accept "unsafe" strings in json_dispatch_string() + json_dispatch_string() */
         JSON_RELAX      = 1 << 4, /* Use relaxed user name checking in json_dispatch_user_group_name */
 
-        /* The following two may be passed into log_json() in addition to the three above */
-        JSON_DEBUG      = 1 << 4, /* Indicates that this log message is a debug message */
-        JSON_WARNING    = 1 << 5, /* Indicates that this log message is a warning message */
+        /* The following two may be passed into log_json() in addition to those above */
+        JSON_DEBUG      = 1 << 5, /* Indicates that this log message is a debug message */
+        JSON_WARNING    = 1 << 6, /* Indicates that this log message is a warning message */
 } JsonDispatchFlags;
 
 typedef int (*JsonDispatchCallback)(const char *name, JsonVariant *variant, JsonDispatchFlags flags, void *userdata);