[Groonga-commit] groonga/groonga [master] Add type casts for logging.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 1日 (火) 10:16:57 JST


Susumu Yata	2012-05-01 10:16:57 +0900 (Tue, 01 May 2012)

  New Revision: c373aaf3ea2ffcdfb7b3704b918456e15379e15a

  Log:
    Add type casts for logging.

  Modified files:
    lib/com.c

  Modified: lib/com.c (+2 -1)
===================================================================
--- lib/com.c    2012-05-01 10:12:56 +0900 (00a8952)
+++ lib/com.c    2012-05-01 10:16:57 +0900 (52d2a39)
@@ -729,7 +729,8 @@ grn_com_send(grn_ctx *ctx, grn_com *cs,
     }
   }
   if (ret != whole_size) {
-    GRN_LOG(ctx, GRN_LOG_ERROR, "sendmsg(%d): %d < %d", cs->fd, ret, whole_size);
+    GRN_LOG(ctx, GRN_LOG_ERROR, "sendmsg(%d): %d < %u",
+            cs->fd, (int)ret, (unsigned int)whole_size);
   }
   return ctx->rc;
 }




Groonga-commit メーリングリストの案内
Back to archive index