Patch from tito to improve options parsing.
authorRob Landley <rob@landley.net>
Thu, 3 Aug 2006 20:22:37 +0000 (20:22 -0000)
committerRob Landley <rob@landley.net>
Thu, 3 Aug 2006 20:22:37 +0000 (20:22 -0000)
miscutils/hdparm.c

index aea96d62251229ea99eb9de42ba10548d2a44568..1febcef2c39dbd1b01ee6e28ac39f2315f9ddc59 100644 (file)
@@ -1481,7 +1481,7 @@ static void interpret_standby(unsigned int standby)
 {
        unsigned int t;
 
-
+       printf(" (");
        if (standby == 0)
                printf("off");
        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_HDIO_GETSET_DMA("d::")
 #ifdef HDIO_DRIVE_CMD
-                                                                       "S::D::P::X::K::A::L::W::CyYzZ"
+                                                                       "S:D:P:X:K:A:L:W:CyYzZ"
 #endif
        USE_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF("U:")
 #ifdef HDIO_GET_QDMA