From 2acb7420439c6d78895cff38910253caf724c7dc Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Sun, 22 Oct 2023 16:19:40 +0200 Subject: [PATCH] Fix output formatting (#1254) --- cpp/shared/protobuf_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/shared/protobuf_util.cpp b/cpp/shared/protobuf_util.cpp index 1cdff94b..012a5011 100644 --- a/cpp/shared/protobuf_util.cpp +++ b/cpp/shared/protobuf_util.cpp @@ -14,7 +14,7 @@ #include #include #include - +#include using namespace std; using namespace piscsi_util; @@ -132,7 +132,7 @@ string protobuf_util::ListDevices(const vector& pb_devices) break; } - s << "| " << device.id() << " | " << device.unit() << " | " << PbDeviceType_Name(device.type()) << " | " + s << "| " << device.id() << " | " << setw(3) << device.unit() << " | " << PbDeviceType_Name(device.type()) << " | " << (filename.empty() ? "NO MEDIUM" : filename) << (!device.status().removed() && (device.properties().read_only() || device.status().protected_()) ? " (READ-ONLY)" : "") << '\n';