From 6beda1bcee4396ceced99b8a8c5627940f507ace Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 20 Dec 2020 23:09:31 +0000 Subject: internals: error tracing: record the not-found path upon ENOENT as needed. --- src/output/slbt_output_config.c | 22 +++++++++++----------- src/output/slbt_output_exec.c | 12 ++++++------ src/output/slbt_output_features.c | 6 +++--- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src/output') diff --git a/src/output/slbt_output_config.c b/src/output/slbt_output_config.c index 934da61..cac0df9 100644 --- a/src/output/slbt_output_config.c +++ b/src/output/slbt_output_config.c @@ -78,37 +78,37 @@ int slbt_output_config(const struct slbt_driver_ctx * dctx) midwidth &= (~(SLBT_TAB_WIDTH-1)); if (slbt_output_config_line(fdout,"key","value","annotation",midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"---","-----","----------",midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"compiler",cctx->cargv[0],"",midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"target",cctx->target,"",midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"host",cctx->host.host,cctx->cfgmeta.host,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"flavor",cctx->host.flavor,cctx->cfgmeta.flavor,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"ar",cctx->host.ar,cctx->cfgmeta.ar,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"ranlib",cctx->host.ranlib,cctx->cfgmeta.ranlib,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"windres",cctx->host.windres,cctx->cfgmeta.windres,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"dlltool",cctx->host.dlltool,cctx->cfgmeta.dlltool,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_output_config_line(fdout,"mdso",cctx->host.mdso,cctx->cfgmeta.mdso,midwidth)) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); return 0; } diff --git a/src/output/slbt_output_exec.c b/src/output/slbt_output_exec.c index f1d06ed..6adceb6 100644 --- a/src/output/slbt_output_exec.c +++ b/src/output/slbt_output_exec.c @@ -38,7 +38,7 @@ static int slbt_output_exec_annotated( aclr_bold,aclr_magenta, dctx->program,aclr_reset, aclr_bold,aclr_green,step,aclr_reset) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); for (parg=ectx->argv; *parg; parg++) { if ((parg == ectx->lout[0]) || (parg == ectx->mout[0])) { @@ -56,12 +56,12 @@ static int slbt_output_exec_annotated( aclr_set,aclr_color, *parg, aclr_unset) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); } if (slbt_dprintf(fdout,"\n") < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); return 0; } @@ -77,14 +77,14 @@ static int slbt_output_exec_plain( fdout = slbt_driver_fdout(dctx); if (slbt_dprintf(fdout,"%s: %s:",dctx->program,step) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); for (parg=ectx->argv; *parg; parg++) if (slbt_dprintf(fdout," %s",*parg) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_dprintf(fdout,"\n") < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); return 0; } diff --git a/src/output/slbt_output_features.c b/src/output/slbt_output_features.c index 3a3b828..a6276da 100644 --- a/src/output/slbt_output_features.c +++ b/src/output/slbt_output_features.c @@ -31,13 +31,13 @@ int slbt_output_features(const struct slbt_driver_ctx * dctx) ? disable : enable; if (slbt_dprintf(fdout,"host: %s\n",dctx->cctx->host.host) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_dprintf(fdout,"%s shared libraries\n",shared_option) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); if (slbt_dprintf(fdout,"%s static libraries\n",static_option) < 0) - return SLBT_SYSTEM_ERROR(dctx); + return SLBT_SYSTEM_ERROR(dctx,0); return 0; } -- cgit v1.2.3