1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Make getpid() use %d consistently for printing.

This commit is contained in:
Bruce Momjian
2004-10-09 02:46:42 +00:00
parent b3723aeb1f
commit 67608a393b
4 changed files with 13 additions and 17 deletions

View File

@ -42,7 +42,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.153 2004/10/09 01:24:47 momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/error/elog.c,v 1.154 2004/10/09 02:46:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1364,13 +1364,13 @@ log_line_prefix(StringInfo buf)
case 'c':
if (MyProcPort)
{
appendStringInfo(buf, "%lx.%lx",
appendStringInfo(buf, "%lx.%x",
(long) (MyProcPort->session_start.tv_sec),
(long) MyProcPid);
MyProcPid);
}
break;
case 'p':
appendStringInfo(buf, "%ld", (long) MyProcPid);
appendStringInfo(buf, "%d", MyProcPid);
break;
case 'l':
appendStringInfo(buf, "%ld", log_line_number);