bos-error-string-args-cleanup-20030808
authorAlf Wachsmann <alfw@slac.stanford.edu>
Fri, 8 Aug 2003 21:27:58 +0000 (21:27 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 8 Aug 2003 21:27:58 +0000 (21:27 +0000)
FIXES 1822

remove bogus arguments to printf in bos

src/bozo/bos.c

index 565bd35..412510f 100644 (file)
@@ -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)