From 724ece39d6e39b5a4541f689f68e3bb69279fd75 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 29 Jul 2024 03:05:30 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20utils:=20fix=20partition=20dump?= =?UTF-8?q?=20for=20nullopt=20subvol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.cpp b/src/utils.cpp index 3f92e3d..c563912 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -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='{}'", 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& partitions) noexcept {