null+****@clear*****
null+****@clear*****
2010年 10月 5日 (火) 16:23:04 JST
Kouhei Sutou 2010-10-05 07:23:04 +0000 (Tue, 05 Oct 2010)
New Revision: fe75ea3fbb39be66b218dc43d286e531b103d9cf
Log:
show the problem position.
Modified files:
src/grntest.c
Modified: src/grntest.c (+4 -2)
===================================================================
--- src/grntest.c 2010-10-05 07:21:22 +0000 (465fed9)
+++ src/grntest.c 2010-10-05 07:23:04 +0000 (12a1568)
@@ -902,7 +902,8 @@ do_load_command(grn_ctx *ctx, char *command, int type, int task_id,
error_exit_in_thread(55);
}
if (logbuf[LOGBUF_LEN-2] != '\0') {
- fprintf(stderr, "too long line input-log\n");
+ fprintf(stderr, "too long line input-log: <%s>: <%.*s>\n",
+ command, LOGBUF_LEN - 2, logbuf);
error_exit_in_thread(56);
}
loglen = strlen(logbuf);
@@ -987,7 +988,8 @@ do_command(grn_ctx *ctx, char *command, int type, int task_id)
error_exit_in_thread(55);
}
if (logbuf[LOGBUF_LEN-2] != '\0') {
- fprintf(stderr, "too long line input-log\n");
+ fprintf(stderr, "too long line input-log: <%s>: <%.*s>\n",
+ command, LOGBUF_LEN - 2, logbuf);
error_exit_in_thread(56);
}
loglen = strlen(logbuf);