🚧 utils: fix partition dump for nullopt subvol

This commit is contained in:
Vladislav Nepogodin 2024-07-29 03:05:30 +04:00
parent d99d0fe272
commit 724ece39d6
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -218,7 +218,7 @@ void dump_partition_to_log(const gucc::fs::Partition& partition) noexcept {
spdlog::debug("[DUMP] {}: fs='{}';mountpoint='{}';uuid_str='{}';device='{}';mount_opts='{}';subvolume='{}'", spdlog::debug("[DUMP] {}: fs='{}';mountpoint='{}';uuid_str='{}';device='{}';mount_opts='{}';subvolume='{}'",
part_tag, part_tag,
partition.fstype, partition.mountpoint, partition.uuid_str, partition.device, partition.mount_opts, *partition.subvolume); partition.fstype, partition.mountpoint, partition.uuid_str, partition.device, partition.mount_opts, (!partition.subvolume.has_value()) ? "(NONE)"sv : *partition.subvolume);
} }
void dump_partitions_to_log(const std::vector<gucc::fs::Partition>& partitions) noexcept { void dump_partitions_to_log(const std::vector<gucc::fs::Partition>& partitions) noexcept {