[Groonga-commit] groonga/groonga at 4aa08d6 [master] windows: show arguments

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sat Jan 17 16:04:42 JST 2015


Kouhei Sutou	2015-01-17 16:04:42 +0900 (Sat, 17 Jan 2015)

  New Revision: 4aa08d67d1f47d1d46f88f12a288ee0f359d9c26
  https://github.com/groonga/groonga/commit/4aa08d67d1f47d1d46f88f12a288ee0f359d9c26

  Message:
    windows: show arguments

  Modified files:
    lib/io.c

  Modified: lib/io.c (+4 -2)
===================================================================
--- lib/io.c    2015-01-17 16:02:39 +0900 (2f65208)
+++ lib/io.c    2015-01-17 16:04:42 +0900 (25c12d2)
@@ -1308,8 +1308,10 @@ grn_mmap(grn_ctx *ctx, HANDLE *fmo, fileinfo *fi, off_t offset, size_t length)
   if (!*fmo) { return NULL; }
   res = MapViewOfFile(*fmo, FILE_MAP_WRITE, 0, (DWORD)offset, (SIZE_T)length);
   if (!res) {
-    MERR("MapViewOfFile failed #%d <%" GRN_FMT_SIZE ">",
-         GetLastError(), mmap_size);
+    SERR("MapViewOfFile");
+    GRN_LOG(ctx, GRN_LOG_ERROR,
+            "MapViewOfFile(%lu,%" GRN_FMT_SIZE ") failed <%" GRN_FMT_SIZE ">",
+            (DWORD)offset, length, mmap_size);
     return NULL;
   }
   /* CRITICAL_SECTION_LEAVE(fi->cs); */
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る