Skip to content

Commit 640b91c

Browse files
committed
Use correct format placeholder for pids
Should be signed, not unsigned.
1 parent c64dcc7 commit 640b91c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ autovac_balance_cost(void)
18601860
}
18611861

18621862
if (worker->wi_proc != NULL)
1863-
elog(DEBUG2, "autovac_balance_cost(pid=%u db=%u, rel=%u, dobalance=%s cost_limit=%d, cost_limit_base=%d, cost_delay=%g)",
1863+
elog(DEBUG2, "autovac_balance_cost(pid=%d db=%u, rel=%u, dobalance=%s cost_limit=%d, cost_limit_base=%d, cost_delay=%g)",
18641864
worker->wi_proc->pid, worker->wi_dboid, worker->wi_tableoid,
18651865
worker->wi_dobalance ? "yes" : "no",
18661866
worker->wi_cost_limit, worker->wi_cost_limit_base,

src/backend/postmaster/bgworker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ BackgroundWorkerStateChange(bool allow_new_workers)
387387
rw->rw_worker.bgw_notify_pid = slot->worker.bgw_notify_pid;
388388
if (!PostmasterMarkPIDForWorkerNotify(rw->rw_worker.bgw_notify_pid))
389389
{
390-
elog(DEBUG1, "worker notification PID %lu is not valid",
390+
elog(DEBUG1, "worker notification PID %ld is not valid",
391391
(long) rw->rw_worker.bgw_notify_pid);
392392
rw->rw_worker.bgw_notify_pid = 0;
393393
}

src/backend/replication/logical/snapbuild.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
15411541
elog(DEBUG1, "serializing snapshot to %s", path);
15421542

15431543
/* to make sure only we will write to this tempfile, include pid */
1544-
sprintf(tmppath, "pg_logical/snapshots/%X-%X.snap.%u.tmp",
1544+
sprintf(tmppath, "pg_logical/snapshots/%X-%X.snap.%d.tmp",
15451545
LSN_FORMAT_ARGS(lsn), MyProcPid);
15461546

15471547
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy