From: Ivan Maidanski Date: Tue, 11 Dec 2012 04:11:50 +0000 (+0400) Subject: Remove redundant GC_err_printf before abort X-Git-Tag: gc7_4_0~122 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db6df7562ce3dbf5e4eb4269229dee780f489440;p=gc Remove redundant GC_err_printf before abort * dbg_mlc.c (GC_debug_realloc): Remove redundant GC_err_printf invocation before abort; refine abort message. * os_dep.c (GC_register_data_segments): Likewise. --- diff --git a/dbg_mlc.c b/dbg_mlc.c index 9422b71f..5287149f 100644 --- a/dbg_mlc.c +++ b/dbg_mlc.c @@ -881,8 +881,7 @@ GC_API void * GC_CALL GC_debug_realloc(void * p, size_t lb, GC_EXTRA_PARAMS) # endif default: result = NULL; /* initialized to prevent warning. */ - GC_err_printf("GC_debug_realloc: encountered bad kind\n"); - ABORT_RET("Bad kind"); + ABORT_RET("GC_debug_realloc: encountered bad kind"); } if (result != NULL) { diff --git a/os_dep.c b/os_dep.c index 45d4a310..fdde091a 100644 --- a/os_dep.c +++ b/os_dep.c @@ -1467,14 +1467,12 @@ void GC_register_data_segments(void) struct o32_obj seg; /* Currrent segment */ int nsegs; - if (DosGetInfoBlocks(&ptib, &ppib) != NO_ERROR) { ABORT("DosGetInfoBlocks failed"); } module_handle = ppib -> pib_hmte; if (DosQueryModuleName(module_handle, PBUFSIZ, path) != NO_ERROR) { - GC_err_printf("DosQueryModuleName failed\n"); - ABORT("DosGetInfoBlocks failed"); + ABORT("DosQueryModuleName failed"); } myexefile = fopen(path, "rb"); if (myexefile == 0) {