From: PatR Date: Mon, 31 Jul 2017 01:33:28 +0000 (-0700) Subject: fix #H5781 - missing fprintf args in wc_trace.c X-Git-Tag: NetHack-3.6.1_RC01~446 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4d4becfa23c1a439a73cb29ee5d3e5a14e61666;p=nethack fix #H5781 - missing fprintf args in wc_trace.c This compiles cleanly after the fixes, but is otherwise untested. --- diff --git a/win/chain/wc_trace.c b/win/chain/wc_trace.c index 9073e062a..b3d21e7ea 100644 --- a/win/chain/wc_trace.c +++ b/win/chain/wc_trace.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 wc_trace.c $NHDT-Date: 1433806611 2015/06/08 23:36:51 $ $NHDT-Branch: master $:$NHDT-Revision: 1.7 $ */ +/* NetHack 3.6 wc_trace.c $NHDT-Date: 1501464799 2017/07/31 01:33:19 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.8 $ */ /* Copyright (c) Kenneth Lorber, 2012 */ /* NetHack may be freely redistributed. See license for details. */ @@ -10,7 +10,7 @@ #include FILE *wc_tracelogf; /* Should be static, but it's just too useful to have - * access to this logfile from arbitrary other files. */ + * access to this logfile from arbitrary other files. */ static unsigned int indent_level; /* Some winfuncs call other winfuncs, so * we need to support nesting. */ @@ -560,7 +560,7 @@ char *posbar; fprintf(wc_tracelogf, "%supdate_positionbar('%s'(%d))\n", INDENT, posbar, (int) strlen(posbar)); } else { - fprintf(wc_tracelogf, "%supdate_positionbar(NULL)\n"); + fprintf(wc_tracelogf, "%supdate_positionbar(NULL)\n", INDENT); } PRE; (*tdp->nprocs->win_update_positionbar)(tdp->ndata, posbar); @@ -901,7 +901,7 @@ void *vp; struct trace_data *tdp = vp; char *rv; - fprintf(wc_tracelogf, "%sget_color_string()\n"); + fprintf(wc_tracelogf, "%sget_color_string()\n", INDENT); PRE; rv = (*tdp->nprocs->win_get_color_string)(tdp->ndata); @@ -911,7 +911,7 @@ void *vp; fprintf(wc_tracelogf, "%s=> '%s'(%d)\n", INDENT, rv, (int) strlen(rv)); } else { - fprintf(wc_tracelogf, "%s=> NULL\n"); + fprintf(wc_tracelogf, "%s=> NULL\n", INDENT); } return rv;