]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
volinfo: fix formating of placeholder printfs
authorDerrick Brashear <shadow@dementix.org>
Tue, 17 Jan 2012 21:08:56 +0000 (16:08 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 13 Aug 2014 18:32:33 +0000 (14:32 -0400)
needed to placate gcc-llvm on lion

Reviewed-on: http://gerrit.openafs.org/6565
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 60df98806b1aaf6ea4ba8f089faf8e9247b2fba5)

Change-Id: I583cc194ad81b025f925ad56a74c4acd941b7ddf
Reviewed-on: http://gerrit.openafs.org/11269
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/vol-info.c

index 018907cf0ee5bcb2a4da7a1b6db4ebc4c95da5ed..8e0285bee197127c959b098f7ab358663796d6f9 100644 (file)
@@ -2296,7 +2296,7 @@ PrintPartitionId(Volume * vp)
     } else {
        fprintf(stderr, "Invalid partition for volume id %lu\n",
                afs_printable_uint32_lu(V_id(vp)));
-       printf(PLACEHOLDER);
+       printf("%s", PLACEHOLDER);
     }
 }
 
@@ -2399,7 +2399,7 @@ PrintNamei(Volume * vp, VnodeDiskObject * vnode)
     printf("%s", name.n_path);
     IH_RELEASE(ihP);
 #else
-    printf(PLACEHOLDER);
+    printf("%s", PLACEHOLDER);
 #endif
 }
 
@@ -2506,7 +2506,7 @@ PrintColumns(struct VnodeDetails *vdp, const char *desc)
            if (vdp->t == VNODE_U_POS_ACCESS || vdp->t == VNODE_U_NEG_ACCESS) {
                printf("%d", vdp->u.access->id);
            } else {
-               printf(PLACEHOLDER);
+               printf("%s", PLACEHOLDER);
            }
            break;
        case col_arights: