The output should be the additional space needed, otherwise we are always warning that 810GB will be stored, even when a user is pruning.
For example on machine with ~20GB free disk, pruning to 40GB:
0./build/bin/bitcoind -prune=40000
1...
22026-01-15T11:45:33Z [warning] Disk space for "/root/.bitcoin/blocks" may not accommodate the block files. Approximately 810 GB of data will be stored in this directory.
3Warning: Disk space for "/root/.bitcoin/blocks" may not accommodate the block files. Approximately 810 GB of data will be stored in this directory.
This PR:
0./build/bin/bitcoind -prune=40000
1...
22026-01-15T11:41:49Z [warning] Disk space for "/root/.bitcoin/blocks" may not accommodate the block files. Approximately 39 GB of data will be stored in this directory.
3Warning: Disk space for "/root/.bitcoin/blocks" may not accommodate the block files. Approximately 39 GB of data will be stored in this directory.