From: Alf Wachsmann Date: Fri, 8 Aug 2003 21:27:58 +0000 (+0000) Subject: bos-error-string-args-cleanup-20030808 X-Git-Tag: openafs-devel-1_3_50~96 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0e49bd804aaca2b86a6adac5496ca793675fe870;p=packages%2Fo%2Fopenafs.git bos-error-string-args-cleanup-20030808 FIXES 1822 remove bogus arguments to printf in bos --- diff --git a/src/bozo/bos.c b/src/bozo/bos.c index 565bd3588..412510fd1 100644 --- a/src/bozo/bos.c +++ b/src/bozo/bos.c @@ -1716,7 +1716,7 @@ SalvageCmd(as) } else { printf ("bos: can't initialize volume system client (code %d), trying anyway.\n", - as->parms[2].items->data, code); + code); strncpy(tname, as->parms[2].items->data, sizeof(tname)); } if (volutil_GetPartitionID(as->parms[1].items->data) < 0) { @@ -1802,7 +1802,7 @@ DoStat(aname, aconn, aint32p, firstTime) printf("bos: failed to get status for instance '%s' (%s)\n", aname, em(code)); else { - printf("currently ", aname); + printf("currently "); if (temp == BSTAT_NORMAL) printf("running normally.\n"); else if (temp == BSTAT_SHUTDOWN)