From: Derrick Brashear Date: Tue, 17 Jan 2012 21:08:56 +0000 (-0500) Subject: volinfo: fix formating of placeholder printfs X-Git-Tag: upstream/1.6.10_pre1^2~15 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dbe597d944716561f938906f66801dd0b8c0c2c3;p=packages%2Fo%2Fopenafs.git volinfo: fix formating of placeholder printfs needed to placate gcc-llvm on lion Reviewed-on: http://gerrit.openafs.org/6565 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 60df98806b1aaf6ea4ba8f089faf8e9247b2fba5) Change-Id: I583cc194ad81b025f925ad56a74c4acd941b7ddf Reviewed-on: http://gerrit.openafs.org/11269 Reviewed-by: Chas Williams - CONTRACTOR Reviewed-by: Andrew Deason Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/vol/vol-info.c b/src/vol/vol-info.c index 018907cf0..8e0285bee 100644 --- a/src/vol/vol-info.c +++ b/src/vol/vol-info.c @@ -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: