Navigation Menu

Skip to content

Commit

Permalink
Use GRN_FMT_SIZE for size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 16, 2015
1 parent ede5edb commit dec80e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ctx.c
Expand Up @@ -2477,7 +2477,8 @@ grn_malloc_fail(grn_ctx *ctx, size_t size, const char* file, int line, const cha
if (grn_fail_malloc_check(size, file, line, func)) {
return grn_malloc_default(ctx, size, file, line, func);
} else {
MERR("fail_malloc (%d) (%s:%d@%s) <%d>", size, file, line, func, alloc_count);
MERR("fail_malloc (%" GRN_FMT_SIZE ") (%s:%d@%s) <%d>",
size, file, line, func, alloc_count);
return NULL;
}
}
Expand All @@ -2488,7 +2489,8 @@ grn_calloc_fail(grn_ctx *ctx, size_t size, const char* file, int line, const cha
if (grn_fail_malloc_check(size, file, line, func)) {
return grn_calloc_default(ctx, size, file, line, func);
} else {
MERR("fail_calloc (%d) (%s:%d@%s) <%d>", size, file, line, func, alloc_count);
MERR("fail_calloc (%" GRN_FMT_SIZE ") (%s:%d@%s) <%d>",
size, file, line, func, alloc_count);
return NULL;
}
}
Expand Down

0 comments on commit dec80e3

Please sign in to comment.