From: <n-...@us...> - 2011-11-11 07:03:58
|
Revision: 5540 http://gfarm.svn.sourceforge.net/gfarm/?rev=5540&view=rev Author: n-soda Date: 2011-11-11 07:03:51 +0000 (Fri, 11 Nov 2011) Log Message: ----------- output log message before calling abort() Modified Paths: -------------- gfarm_v2/trunk/lib/libgfarm/gfarm/auth_common.c gfarm_v2/trunk/lib/libgfarm/gfutil/id_table.c Modified: gfarm_v2/trunk/lib/libgfarm/gfarm/auth_common.c =================================================================== --- gfarm_v2/trunk/lib/libgfarm/gfarm/auth_common.c 2011-11-11 06:51:29 UTC (rev 5539) +++ gfarm_v2/trunk/lib/libgfarm/gfarm/auth_common.c 2011-11-11 07:03:51 UTC (rev 5540) @@ -314,7 +314,8 @@ gfarm_mutex_unlock(&openssl_mutex, diag, openssl_diag); if (md_len != GFARM_AUTH_RESPONSE_LEN) { - fprintf(stderr, "gfarm_auth_sharedsecret_response_data:" + gflog_error(GFARM_MSG_UNFIXED, + "gfarm_auth_sharedsecret_response_data:" "md5 digest length should be %d, but %d\n", GFARM_AUTH_RESPONSE_LEN, md_len); abort(); Modified: gfarm_v2/trunk/lib/libgfarm/gfutil/id_table.c =================================================================== --- gfarm_v2/trunk/lib/libgfarm/gfutil/id_table.c 2011-11-11 06:51:29 UTC (rev 5539) +++ gfarm_v2/trunk/lib/libgfarm/gfutil/id_table.c 2011-11-11 07:03:51 UTC (rev 5540) @@ -67,8 +67,12 @@ /* this assumes sizeof(struct gfarm_id_free_data) is power of 2 */ if ((sizeof(struct gfarm_id_free_data) & - (sizeof(struct gfarm_id_free_data) - 1)) != 0) + (sizeof(struct gfarm_id_free_data) - 1)) != 0) { + gflog_error(GFARM_MSG_UNFIXED, + "gfarm_id_table_alloc: unexpected struct size %zd", + sizeof(struct gfarm_id_free_data)); abort(); + } if (entry_ops->entry_size == 0) idtab->entry_size = sizeof(struct gfarm_id_free_data); else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |