Skip to content

Commit b66a2f7

Browse files
committed
CDRIVER-2392 nonstandard printf format
1 parent 51c7384 commit b66a2f7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/mongoc/mongoc-uri.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -762,19 +762,21 @@ mongoc_uri_parse_option (mongoc_uri_t *uri, const char *str, bool override)
762762
(0 == strcasecmp (value, "yes")) ||
763763
(0 == strcasecmp (value, "y")) ||
764764
(0 == strcasecmp (value, "t"))) {
765-
MONGOC_WARNING ("Deprecated boolean value for \"%1$s\": \"%2$s\", "
766-
"please update to \"%1$s=true\"",
765+
MONGOC_WARNING ("Deprecated boolean value for \"%s\": \"%s\", "
766+
"please update to \"%s=true\"",
767767
key,
768-
value);
768+
value,
769+
key);
769770
mongoc_uri_set_option_as_bool (uri, lkey, true);
770771
} else if ((0 == strcasecmp (value, "0")) ||
771772
(0 == strcasecmp (value, "-1")) ||
772773
(0 == strcmp (value, "no")) || (0 == strcmp (value, "n")) ||
773774
(0 == strcmp (value, "f"))) {
774-
MONGOC_WARNING ("Deprecated boolean value for \"%1$s\": \"%2$s\", "
775-
"please update to \"%1$s=false\"",
775+
MONGOC_WARNING ("Deprecated boolean value for \"%s\": \"%s\", "
776+
"please update to \"%s=false\"",
776777
key,
777-
value);
778+
value,
779+
key);
778780
mongoc_uri_set_option_as_bool (uri, lkey, false);
779781
} else {
780782
goto UNSUPPORTED_VALUE;

0 commit comments

Comments
 (0)