btrfs-progs: quota: use pr_verbose for messages

Replace printf by the level-aware helper. No change for commands that
don't have the global -q/-v options, otherwise the output can be
quieted.

There's no change in qgroup.c yet as the output relies on return value
of the formatter and pr_verbose does not do that.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2022-10-04 16:50:09 +02:00
parent c98f9d0392
commit 2c5c4141ba

View File

@ -169,9 +169,9 @@ static int cmd_quota_rescan(const struct cmd_struct *cmd, int argc, char **argv)
return 1;
}
if (!args.flags)
printf("no rescan operation in progress\n");
pr_verbose(LOG_DEFAULT, "no rescan operation in progress\n");
else
printf("rescan operation running (current key %lld)\n",
pr_verbose(LOG_DEFAULT, "rescan operation running (current key %lld)\n",
args.progress);
return 0;
}