From: Jeffrey Altman Date: Sun, 4 Sep 2011 01:33:00 +0000 (-0400) Subject: windows: fix comments, add logging X-Git-Tag: upstream/1.8.0_pre1^2~3313 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=796684c024bfd675072bc067289b55dba2f130db;p=packages%2Fo%2Fopenafs.git windows: fix comments, add logging Change-Id: I383ce8679828f91d013d1f98ea3d25c73a0399df Reviewed-on: http://gerrit.openafs.org/5356 Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 146177523..958f8fdfc 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -1071,7 +1071,7 @@ long cm_ConnByMServers(cm_serverRef_t *serversp, cm_user_t *usersp, /* * search the list until we find the server * that failed last time. When we find it - * clear the error, skip it and try the one + * clear the error, skip it and try the next one * in the list. */ if (tsp == reqp->tokenIdleErrorServp) diff --git a/src/WINNT/afsd/cm_dcache.c b/src/WINNT/afsd/cm_dcache.c index 205bcbe46..b8158b5c3 100644 --- a/src/WINNT/afsd/cm_dcache.c +++ b/src/WINNT/afsd/cm_dcache.c @@ -334,10 +334,11 @@ long cm_BufWrite(void *vscp, osi_hyper_t *offsetp, long length, long flags, nbytes = save_nbytes; goto retry; } - - /* Prefer StoreData error over rx_EndCall error */ - if (code1 != 0) + /* Prefer rx_EndCall error over StoreData error */ + if (code1 != 0) { + osi_Log2(afsd_logp, "rx_EndCall converted 0x%x to 0x%x", code, code1); code = code1; + } } while (cm_Analyze(connp, userp, reqp, &scp->fid, &volSync, NULL, NULL, code)); code = cm_MapRPCError(code, reqp);