Skip to content

Commit

Permalink
Fix output formatting (#1254)
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet authored Oct 22, 2023
1 parent 02d18b3 commit 2acb742
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/shared/protobuf_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <sstream>
#include <array>
#include <vector>

#include <iomanip>

using namespace std;
using namespace piscsi_util;
Expand Down Expand Up @@ -132,7 +132,7 @@ string protobuf_util::ListDevices(const vector<PbDevice>& 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';
Expand Down

0 comments on commit 2acb742

Please sign in to comment.