From 28c80845eaf0c5e0eb6bc5f235a37aa38d00212f Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Tue, 30 Oct 2018 01:33:09 +0100 Subject: [PATCH] mnt: simplify debug message --- mnt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mnt.cc b/mnt.cc index 825b253..5c36490 100644 --- a/mnt.cc +++ b/mnt.cc @@ -540,8 +540,8 @@ const std::string describeMountPt(const mount_t& mpt) { std::string descr; descr.append("'") - .append(mpt.src) - .append("' -> '") + .append(mpt.src.empty() ? "" : mpt.src) + .append(mpt.src.empty() ? "" : "' -> '") .append(mpt.dst) .append("' flags:'") .append(flagsToStr(mpt.flags)) -- 2.7.4