aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@sandeen.net>2018-01-03 14:10:09 -0600
committerEric Sandeen <sandeen@redhat.com>2018-01-03 14:10:09 -0600
commitb729d144ed5855402be57d23b92fe68d4e5cac26 (patch)
treec12cfce95daff0b65af6b6fc51957c22fda520b9
parentdf902341d68d154bb14d7d16dde0c7ec01333f34 (diff)
downloadxfsprogs-dev-b729d144ed5855402be57d23b92fe68d4e5cac26.tar.gz
mkfs: Don't emit default config message yet
Until we have more than one possible source of configuration, there is no need to emit the only possibility and clutter the output. We can decide how it should all look when we get more than one source. Apply some i18n to the config description, though. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r--mkfs/xfs_mkfs.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c
index e38810f533..c1de4677f5 100644
--- a/mkfs/xfs_mkfs.c
+++ b/mkfs/xfs_mkfs.c
@@ -3845,7 +3845,7 @@ main(
/* build time defaults */
struct mkfs_default_params dft = {
- .source = "package build definitions",
+ .source = _("package build definitions"),
.sectorsize = XFS_MIN_SECTORSIZE,
.blocksize = 1 << XFS_DFL_BLOCKSIZE_LOG,
.sb_feat = {
@@ -3881,10 +3881,12 @@ main(
* defaults. If a file exists in <package location>, read in the new
* default values and overwrite them in the &dft structure. This way the
* new defaults will apply before we parse the CLI, and the CLI will
- * still be able to override them. Emit a message to indicate where the
- * defaults being used came from.
+ * still be able to override them. When more than one source is
+ * implemented, emit a message to indicate where the defaults being
+ * used came from.
+ *
+ * printf(_("Default configuration sourced from %s\n"), dft.source);
*/
- printf(_("Default configuration sourced from %s\n"), dft.source);
/* copy new defaults into CLI parsing structure */
memcpy(&cli.sb_feat, &dft.sb_feat, sizeof(cli.sb_feat));