Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 95fff2a

Browse files
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. Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com> Discussion: https://postgr.es/m/20230829.175615.682972421946735863.horikyota.ntt@gmail.com
1 parent 6844d32 commit 95fff2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/initdb/initdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3350,7 +3350,7 @@ main(int argc, char *argv[])
33503350
check_need_password(authmethodlocal, authmethodhost);
33513351

33523352
if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024))
3353-
pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
3353+
pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
33543354

33553355
get_restricted_token();
33563356

src/bin/pg_resetwal/pg_resetwal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ main(int argc, char *argv[])
298298
exit(1);
299299
set_wal_segsize = wal_segsize_mb * 1024 * 1024;
300300
if (!IsValidWalSegSize(set_wal_segsize))
301-
pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize");
301+
pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize");
302302
break;
303303
}
304304

0 commit comments

Comments
 (0)