Kouhei Sutou
null+****@clear*****
Wed May 30 09:45:09 JST 2018
Kouhei Sutou 2018-05-30 09:45:09 +0900 (Wed, 30 May 2018) New Revision: 2e0a9e4f60fa3ce7cedd4a951e5e45ae8a961e7b https://github.com/groonga/groonga/commit/2e0a9e4f60fa3ce7cedd4a951e5e45ae8a961e7b Message: ii: add sub error message Modified files: lib/ii.c Modified: lib/ii.c (+16 -8) =================================================================== --- lib/ii.c 2018-05-30 09:19:30 +0900 (8480f7ce6) +++ lib/ii.c 2018-05-30 09:45:09 +0900 (43a5853b0) @@ -4735,12 +4735,14 @@ grn_ii_update_one(grn_ctx *ctx, grn_ii *ii, grn_id tid, grn_ii_updspec *u, grn_h "<%.*s>: " "<%.*s>(%u): " "(%u:%u): " - "segment:<%u>", + "segment:<%u>: " + "%s", name_size, name, (int)GRN_TEXT_LEN(&token), GRN_TEXT_VALUE(&token), tid, u->rid, u->sid, - pos); + pos, + ctx->errbuf); GRN_OBJ_FIN(ctx, &token); goto exit; } @@ -4757,11 +4759,13 @@ grn_ii_update_one(grn_ctx *ctx, grn_ii *ii, grn_id tid, grn_ii_updspec *u, grn_h "<%.*s>: " "<%u>:<%u>:<%u>: " "token:<%.*s>: " - "segment:<%u>", + "segment:<%u>: " + "%s", name_size, name, u->rid, u->sid, tid, (int)GRN_TEXT_LEN(&token), GRN_TEXT_VALUE(&token), - pos); + pos, + ctx->errbuf); GRN_OBJ_FIN(ctx, &token); goto exit; } @@ -4892,11 +4896,13 @@ grn_ii_update_one(grn_ctx *ctx, grn_ii *ii, grn_id tid, grn_ii_updspec *u, grn_h MERR("[ii][update][one] failed to put to buffer: " "<%.*s>: " "<%.*s>(%u): " - "(%u:%u)", + "(%u:%u): " + "%s", name_size, name, (int)GRN_TEXT_LEN(&token), GRN_TEXT_VALUE(&token), tid, - u2.rid, u2.sid); + u2.rid, u2.sid, + ctx->errbuf); GRN_OBJ_FIN(ctx, &token); } goto exit; @@ -5075,12 +5081,14 @@ grn_ii_delete_one(grn_ctx *ctx, grn_ii *ii, grn_id tid, grn_ii_updspec *u, grn_h "<%.*s>: " "<%.*s>(%u): " "(%u:%u): " - "position:<%u>", + "position:<%u>: " + "%s", name_size, name, (int)GRN_TEXT_LEN(&token), GRN_TEXT_VALUE(&token), tid, u->rid, u->sid, - a[0]); + a[0], + ctx->errbuf); GRN_OBJ_FIN(ctx, &token); goto exit; } -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180530/98ba8cc3/attachment-0001.htm