Patch from tito to improve options parsing.

This commit is contained in:
Rob Landley 2006-08-03 20:22:37 +00:00
parent 081e38483e
commit 403777ffae

View File

@ -1481,7 +1481,7 @@ static void interpret_standby(unsigned int standby)
{ {
unsigned int t; unsigned int t;
printf(" (");
if (standby == 0) if (standby == 0)
printf("off"); printf("off");
else if (standby == 252) else if (standby == 252)
@ -2082,7 +2082,7 @@ static const char hdparm_options[]= "gfu::n::p:r::m::c::k::a::B:tTh"\
USE_FEATURE_HDPARM_GET_IDENTITY("iI") USE_FEATURE_HDPARM_GET_IDENTITY("iI")
USE_FEATURE_HDPARM_HDIO_GETSET_DMA("d::") USE_FEATURE_HDPARM_HDIO_GETSET_DMA("d::")
#ifdef HDIO_DRIVE_CMD #ifdef HDIO_DRIVE_CMD
"S::D::P::X::K::A::L::W::CyYzZ" "S:D:P:X:K:A:L:W:CyYzZ"
#endif #endif
USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF("U:") USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF("U:")
#ifdef HDIO_GET_QDMA #ifdef HDIO_GET_QDMA