Reword user-facing message for "power of two"
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 29 Aug 2023 09:21:10 +0000 (11:21 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Tue, 29 Aug 2023 09:21:10 +0000 (11:21 +0200)
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.

Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Discussion: https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.com

src/bin/initdb/initdb.c
src/bin/pg_resetwal/pg_resetwal.c

index c66467eb95106b8ea613fda2d8f3915ca5fce97e..905b979947f7eed9b02b628ba56e21d9d3cdd77b 100644 (file)
@@ -3350,7 +3350,7 @@ main(int argc, char *argv[])
    check_need_password(authmethodlocal, authmethodhost);
 
    if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024))
-       pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
+       pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
 
    get_restricted_token();
 
index 9bebc2a9958b5b2049bcda1c2c050a72e66e2f05..25ecdaaa1502080df4dac11d0f51ba304a1bdc18 100644 (file)
@@ -298,7 +298,7 @@ main(int argc, char *argv[])
                        exit(1);
                    set_wal_segsize = wal_segsize_mb * 1024 * 1024;
                    if (!IsValidWalSegSize(set_wal_segsize))
-                       pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
+                       pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
                    break;
                }