From 0e49bd804aaca2b86a6adac5496ca793675fe870 Mon Sep 17 00:00:00 2001 From: Alf Wachsmann Date: Fri, 8 Aug 2003 21:27:58 +0000 Subject: [PATCH 1/1] bos-error-string-args-cleanup-20030808 FIXES 1822 remove bogus arguments to printf in bos --- src/bozo/bos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bozo/bos.c b/src/bozo/bos.c index 565bd35..412510f 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) -- 1.9.4