aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-08-29 14:27:40 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-08-29 14:27:40 +0200
commitcd59fcff256d68e028bf8a181d4e166e81b6474b (patch)
tree6b98ccff8fa9d85325118b494a978bf34c67f886
parent5f38ff3d0f65b7d092362aaf7375cce050a13bba (diff)
downloadpostgresql-cd59fcff256d68e028bf8a181d4e166e81b6474b.tar.gz
postgresql-cd59fcff256d68e028bf8a181d4e166e81b6474b.zip
Reword user-facing message for "power of two"
While there are numerous instances of using "power of 2" in the code, translated user-facing messages use "power of two". Fix two instances which used "power of 2" instead. This is a backpatch of 95fff2abee in master. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.com Backpatch-through: v16
-rw-r--r--src/bin/initdb/initdb.c2
-rw-r--r--src/bin/pg_resetwal/pg_resetwal.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index fc1fb363e74..8b84e230f1c 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -3356,7 +3356,7 @@ main(int argc, char *argv[])
if (endptr == str_wal_segment_size_mb || *endptr != '\0')
pg_fatal("argument of --wal-segsize must be a number");
if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024))
- pg_fatal("argument of --wal-segsize must be a power of 2 between 1 and 1024");
+ pg_fatal("argument of --wal-segsize must be a power of two between 1 and 1024");
}
get_restricted_token();
diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c
index e7ef2b8bd0c..ca57713f63b 100644
--- a/src/bin/pg_resetwal/pg_resetwal.c
+++ b/src/bin/pg_resetwal/pg_resetwal.c
@@ -295,7 +295,7 @@ main(int argc, char *argv[])
if (endptr == optarg || *endptr != '\0' || errno != 0)
pg_fatal("argument of --wal-segsize must be a number");
if (!IsValidWalSegSize(set_wal_segsize))
- pg_fatal("argument of --wal-segsize must be a power of 2 between 1 and 1024");
+ pg_fatal("argument of --wal-segsize must be a power of two between 1 and 1024");
break;
default: