Skip to content

Commit bb1412b

Browse files
committed
Fix incorrect format placeholders
1 parent 8bd5342 commit bb1412b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/backend/libpq/auth-sasl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ CheckSASLAuth(const pg_be_sasl_mech *mech, Port *port, char *shadow_pass,
181181
/*
182182
* Negotiation generated data to be sent to the client.
183183
*/
184-
elog(DEBUG4, "sending SASL challenge of length %u", outputlen);
184+
elog(DEBUG4, "sending SASL challenge of length %d", outputlen);
185185

186186
if (result == PG_SASL_EXCHANGE_SUCCESS)
187187
sendAuthRequest(port, AUTH_REQ_SASL_FIN, output, outputlen);

src/backend/libpq/auth-scram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ build_server_first_message(scram_state *state)
12081208
state->server_nonce[encoded_len] = '\0';
12091209

12101210
state->server_first_message =
1211-
psprintf("r=%s%s,s=%s,i=%u",
1211+
psprintf("r=%s%s,s=%s,i=%d",
12121212
state->client_nonce, state->server_nonce,
12131213
state->salt, state->iterations);
12141214

src/backend/libpq/auth.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,8 +1002,8 @@ pg_GSS_recvauth(Port *port)
10021002
/* gbuf no longer used */
10031003
pfree(buf.data);
10041004

1005-
elog(DEBUG5, "gss_accept_sec_context major: %d, "
1006-
"minor: %d, outlen: %u, outflags: %x",
1005+
elog(DEBUG5, "gss_accept_sec_context major: %u, "
1006+
"minor: %u, outlen: %u, outflags: %x",
10071007
maj_stat, min_stat,
10081008
(unsigned int) port->gss->outbuf.length, gflags);
10091009

0 commit comments

Comments
 (0)