Commit 33e726bc authored by chrfranke's avatar chrfranke
Browse files

Print ATA output registers if SMART status command returns bogus

register values.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3035 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent efee8144
......@@ -43,6 +43,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] Print ATA output registers if SMART status command returns bogus
register values.
[CF] Windows: Don't return false ATA version info if IDENTIFY data
is build from IOCTL_STORAGE_QUERY_PROPERTY result or from 3ware CLI
output.
......
......@@ -623,8 +623,10 @@ int smartcommandhandler(ata_device * device, smart_command_set command, int sele
"probable SAT/USB truncation\n");
} else {
// We haven't gotten output that makes sense; print out some debugging info
pout("Error SMART Status command failed\n"
"Please get assistance from %s\n", PACKAGE_HOMEPAGE);
pout("Error SMART Status command failed\n");
pout("Please get assistance from %s\n", PACKAGE_HOMEPAGE);
pout("Register values returned from SMART Status command are:\n");
print_regs(" ", out.out_regs);
errno = EIO;
retval = -1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment