mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
Resolve missing printf args
A handful of printf's requested more args than they were given. The missing args are now provided. (via cppcheck) Change-Id: I3d2bfd1b68a3518ee4c8a65f02446a2bae85d926 Reviewed-on: https://gerrit.openafs.org/13155 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
This commit is contained in:
parent
268025f841
commit
f3dcf1e07a
@ -1559,7 +1559,7 @@ GetListSG2(struct ubik_trans *at, afs_int32 gid, prlist *alist, afs_int32 *sizeP
|
||||
didsomething ? "TRUE" : "FALSE");
|
||||
if (predictflagged && didsomething != predictfound)
|
||||
fprintf(stderr, "**** for gid=%d, didsomething=%d predictfound=%d\n",
|
||||
didsomething, predictfound);
|
||||
gid, didsomething, predictfound);
|
||||
#endif
|
||||
if (didsomething)
|
||||
sg_found = add_map(sg_found, -gid);
|
||||
|
@ -1218,7 +1218,7 @@ ParseArgs(int argc, char *argv[])
|
||||
#if defined(AFS_AIX32_ENV)
|
||||
if (cmd_OptionAsInt(opts, OPT_minspare, &aixlow_water) == 0) {
|
||||
if ((aixlow_water < 0) || (aixlow_water > 30)) {
|
||||
printf("space reserved %d%% invalid; must be between 0-30%\n",
|
||||
printf("space reserved %d%% invalid; must be between 0-30%%\n",
|
||||
aixlow_water);
|
||||
return -1;
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ main(int argc, char **argv)
|
||||
printf
|
||||
("Inode status: dev=%d, ino=%d, mode=%o, nlink=%d, uid=%d, gid=%d, size=%d, mtime=%d, blocks=%d\n",
|
||||
status.st_dev, status.st_ino, status.st_mode, status.st_nlink,
|
||||
status.st_uid, status.st_gid, status.st_size, status.st_mtime);
|
||||
status.st_uid, status.st_gid, status.st_size, status.st_mtime, status.st_blocks);
|
||||
} else {
|
||||
/* Send the inode to standard out */
|
||||
char buf[4096];
|
||||
|
@ -114,7 +114,7 @@ CheckPartitions()
|
||||
break;
|
||||
case VERIFY_ERROR:
|
||||
printf("%s: Can't check XFS inode size: %s\n",
|
||||
strerror(errno));
|
||||
prog, strerror(errno));
|
||||
break;
|
||||
case VERIFY_FIX:
|
||||
if (nAvail <= nParts) {
|
||||
@ -172,7 +172,7 @@ main(int ac, char **av)
|
||||
#else /* AFS_SGI_XFS_IOPS_ENV */
|
||||
main()
|
||||
{
|
||||
printf("%s only runs on XFS platforms.\n, prog");
|
||||
printf("%s only runs on XFS platforms.\n", prog);
|
||||
exit(1);
|
||||
}
|
||||
#endif /* AFS_SGI_XFS_IOPS_ENV */
|
||||
|
Loading…
x
Reference in New Issue
Block a user