summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/floptool.cpp
diff options
context:
space:
mode:
author Olivier Galibert <galibert@pobox.com>2022-03-30 21:26:25 +0200
committer Olivier Galibert <galibert@pobox.com>2022-03-30 21:26:37 +0200
commit3728913a4ee0db1c590646cc4f89a9da6a0446f9 (patch)
tree57cd9fba5ba6ad6b30bc498001ec03ef88878084 /src/tools/floptool.cpp
parentafc735c502c61c1b1560708dc2f309bef20cef50 (diff)
floppy: revisit the identify returns
Diffstat (limited to 'src/tools/floptool.cpp')
-rw-r--r--src/tools/floptool.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/floptool.cpp b/src/tools/floptool.cpp
index 1e7efc05ba5..7abea32a90b 100644
--- a/src/tools/floptool.cpp
+++ b/src/tools/floptool.cpp
@@ -139,7 +139,13 @@ static int identify(int argc, char *argv[])
bool first = true;
for(const auto &e : scores) {
- printf("%-*s %c %3d - %-*s %s\n", sz, first ? argv[i] : "", first ? ':' : ' ', e.first, sz2, e.second->m_format->name(), e.second->m_format->description());
+ printf("%-*s %c %c%c%c%c%c - %-*s %s\n", sz, first ? argv[i] : "", first ? ':' : ' ',
+ e.first & 0x10 ? '+' : '.',
+ e.first & 0x08 ? '+' : '.',
+ e.first & 0x04 ? '+' : '.',
+ e.first & 0x02 ? '+' : '.',
+ e.first & 0x01 ? '+' : '.',
+ sz2, e.second->m_format->name(), e.second->m_format->description());
first = false;
}
}