]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warnings in ereport messages on mingw.
authorMagnus Hagander <magnus@hagander.net>
Wed, 28 Mar 2007 08:06:11 +0000 (08:06 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 28 Mar 2007 08:06:11 +0000 (08:06 +0000)
ITAGAKI Takahiro

src/backend/port/win32_shmem.c

index b912be54ecfb0a29661133d314b50d62d5474dfd..6eabf0caff904268b0fde33c81c6ea87e72fbdfe 100644 (file)
@@ -6,7 +6,7 @@
  * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/port/win32_shmem.c,v 1.1 2007/03/21 14:39:23 mha Exp $
+ *       $PostgreSQL: pgsql/src/backend/port/win32_shmem.c,v 1.2 2007/03/28 08:06:11 mha Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -136,7 +136,8 @@ PGSharedMemoryCreate(Size size, bool makePrivate, int port)
        if (!hmap)
                ereport(FATAL,
                                (errmsg("could not create shared memory segment: %lu", GetLastError()),
-                                errdetail("Failed system call was CreateFileMapping(size=%lu, name=%s)", size, szShareMem)));
+                                errdetail("Failed system call was CreateFileMapping(size=%lu, name=%s)",
+                                                  (unsigned long) size, szShareMem)));
 
        /*
         * If the segment already existed, CreateFileMapping() will return a
@@ -158,7 +159,8 @@ PGSharedMemoryCreate(Size size, bool makePrivate, int port)
                if (!hmap)
                        ereport(FATAL,
                                        (errmsg("could not create shared memory segment: %lu", GetLastError()),
-                                        errdetail("Failed system call was CreateFileMapping(size=%lu, name=%s)", size, szShareMem)));
+                                        errdetail("Failed system call was CreateFileMapping(size=%lu, name=%s)",
+                                                          (unsigned long) size, szShareMem)));
 
                if (GetLastError() == ERROR_ALREADY_EXISTS)
                        ereport(FATAL,