summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-09-27 15:13:01 +1000
committerNathan Scott <nathans@redhat.com>2021-09-27 15:13:01 +1000
commit4c846921a6b4a9883621978f90f579ad88a38450 (patch)
tree842aed7edc6530b07e1c004166b5ebd9f779ee98
parentc5e789db1bb304edee0b8602edf3edc686392cc0 (diff)
Improve configuration file version diagnostic formatting slightly
-rw-r--r--Settings.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Settings.c b/Settings.c
index b91c12f7..cf90119e 100644
--- a/Settings.c
+++ b/Settings.c
@@ -181,8 +181,9 @@ static bool Settings_read(Settings* this, const char* fileName, unsigned int ini
this->config_version = atoi(option[1]);
if (this->config_version > CONFIG_READER_MIN_VERSION) {
// the version of the config file on disk is newer than what we can read
- fprintf(stderr, "WARNING: %s specifies configuration format version v%d, but this %s binary supports up to v%d\n.", fileName, this->config_version, PACKAGE, CONFIG_READER_MIN_VERSION);
- fprintf(stderr, " The configuration version will be downgraded to v%d when %s exits.\n", CONFIG_READER_MIN_VERSION, PACKAGE);
+ fprintf(stderr, "WARNING: %s specifies configuration format\n", fileName);
+ fprintf(stderr, " version v%d, but this %s binary only supports up to version v%d.\n", this->config_version, PACKAGE, CONFIG_READER_MIN_VERSION);
+ fprintf(stderr, " The configuration file will be downgraded to v%d when %s exits.\n", CONFIG_READER_MIN_VERSION, PACKAGE);
String_freeArray(option);
fclose(fd);
return false;

© 2014-2021 Faster IT GmbH | imprint | privacy policy