From: Derrick Brashear Date: Tue, 17 Jan 2012 21:08:56 +0000 (-0500) Subject: volinfo: fix formating of placeholder printfs X-Git-Tag: openafs-stable-1_8_0pre1~2827 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=60df98806b1aaf6ea4ba8f089faf8e9247b2fba5 volinfo: fix formating of placeholder printfs needed to placate gcc-llvm on lion Change-Id: Ie15e4768d2e3feb7ad80dfef05395f2c4a227c0f Reviewed-on: http://gerrit.openafs.org/6565 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 4d25444..b7c7fc6 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -2271,7 +2271,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); } } @@ -2374,7 +2374,7 @@ PrintNamei(Volume * vp, VnodeDiskObject * vnode) printf("%s", name.n_path); IH_RELEASE(ihP); #else - printf(PLACEHOLDER); + printf("%s", PLACEHOLDER); #endif } @@ -2481,7 +2481,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: