From e254bc2b9c1e5549a532d547663c4375218b2946 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Tue, 24 Aug 2021 12:31:39 +0200 Subject: [PATCH] rasctl -s display block size --- src/raspberrypi/rasctl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/raspberrypi/rasctl.cpp b/src/raspberrypi/rasctl.cpp index 13c642ff..cce02f00 100644 --- a/src/raspberrypi/rasctl.cpp +++ b/src/raspberrypi/rasctl.cpp @@ -229,8 +229,11 @@ void CommandServerInfo(const string& hostname, int port) const PbDevice& device = *it; cout << " " << device.id() << ":" << device.unit() << " " << PbDeviceType_Name(device.type()) - << " " << device.vendor() << ":" << device.product() << ":" << device.revision() - << (device.file().name().empty() ? "" : " " + device.file().name()) << endl; + << " " << device.vendor() << ":" << device.product() << ":" << device.revision(); + if (device.block_size()) { + cout << " " << device.block_size() << " BPS"; + } + cout << (device.file().name().empty() ? "" : " " + device.file().name()) << endl; } } }