Skip to content
Snippets Groups Projects
Commit 4d28c84e authored by dpgilbert's avatar dpgilbert
Browse files

ataprint.cpp: add suggestion when 'Read Device Identity failed: xxx' error...

ataprint.cpp: add suggestion when 'Read Device Identity failed: xxx' error generated to look at --device-type=TYPE variants

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5336 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 93c4e508
No related branches found
No related tags found
No related merge requests found
$Id$ $Id$
2022-02-26 Douglas Gilbert <dgilbert@interlog.com>
ataprint.cpp: add suggestion when 'Read Device Identity
failed: xxx' error generated to look at
--device-type=TYPE variants. May help with USB-C connected
NVMe enclosures (e.g. with M-2 modules inside)
2022-02-26 Christian Franke <franke@computer.org> 2022-02-26 Christian Franke <franke@computer.org>
configure.ac: Print 'deprecated' warning for '--with-signal-func'. configure.ac: Print 'deprecated' warning for '--with-signal-func'.
......
...@@ -3480,6 +3480,8 @@ int ataPrintMain (ata_device * device, const ata_print_options & options) ...@@ -3480,6 +3480,8 @@ int ataPrintMain (ata_device * device, const ata_print_options & options)
if (retid < 0) { if (retid < 0) {
pout("Read Device Identity failed: %s\n\n", pout("Read Device Identity failed: %s\n\n",
(device->get_errno() ? device->get_errmsg() : "Unknown error")); (device->get_errno() ? device->get_errmsg() : "Unknown error"));
pout("If this is a USB connected device, look at the various "
"--device=TYPE variants\n");
failuretest(MANDATORY_CMD, returnval|=FAILID); failuretest(MANDATORY_CMD, returnval|=FAILID);
} }
else if (!nonempty(&drive, sizeof(drive))) { else if (!nonempty(&drive, sizeof(drive))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment