null+****@clear*****
null+****@clear*****
2011年 6月 13日 (月) 13:35:00 JST
Kouhei Sutou 2011-06-13 04:35:00 +0000 (Mon, 13 Jun 2011)
New Revision: 00b0def9d888638625cebb595b6c692dd6fa6e59
Log:
use %zu for size_t.
Modified files:
lib/ctx.c
Modified: lib/ctx.c (+3 -2)
===================================================================
--- lib/ctx.c 2011-06-10 15:33:49 +0000 (d8951f2)
+++ lib/ctx.c 2011-06-13 04:35:00 +0000 (2cf386c)
@@ -1,5 +1,5 @@
/* -*- c-basic-offset: 2 -*- */
-/* Copyright(C) 2009 Brazil
+/* Copyright(C) 2009-2011 Brazil
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -2127,7 +2127,8 @@ grn_malloc_default(grn_ctx *ctx, size_t size, const char* file, int line, const
grn_alloc_info_add(res);
} else {
if (!(res = malloc(size))) {
- MERR("malloc fail (%d)=%p (%s:%d) <%d>", size, res, file, line, alloc_count);
+ MERR("malloc fail (%zu)=%p (%s:%d) <%d>",
+ size, res, file, line, alloc_count);
} else {
GRN_ADD_ALLOC_COUNT(1);
grn_alloc_info_add(res);