aboutsummaryrefslogtreecommitdiff
path: root/src/sg_format.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2011-11-05 04:23:37 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2011-11-05 04:23:37 +0000
commit0ad6d0259fa6992c06124759635d468893c5402f (patch)
tree6fb2e7e37108b2531cc608be1ab919a70eae79e6 /src/sg_format.c
parent70a7481a2f9cf8739334bb0994d338209cfbb17d (diff)
downloadsg3_utils-0ad6d0259fa6992c06124759635d468893c5402f.tar.gz
sg_format: --poll=PT option fix
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@424 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_format.c')
-rw-r--r--src/sg_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_format.c b/src/sg_format.c
index ed0bbd13..43867adc 100644
--- a/src/sg_format.c
+++ b/src/sg_format.c
@@ -47,7 +47,7 @@
#include "sg_cmds_basic.h"
#include "sg_cmds_extra.h"
-static char * version_str = "1.20 20111103";
+static char * version_str = "1.20 20111105";
#define RW_ERROR_RECOVERY_PAGE 1 /* every disk should have one */
#define FORMAT_DEV_PAGE 3 /* Format Device Mode Page [now obsolete] */
@@ -461,7 +461,7 @@ main(int argc, char **argv)
int option_index = 0;
int c;
- c = getopt_long(argc, argv, "c:C:Def:FhlpP:q:rRs:SvVwx6",
+ c = getopt_long(argc, argv, "c:C:Def:FhlpP:q:rRs:SvVwx:6",
long_options, &option_index);
if (c == -1)
break;
@@ -559,7 +559,7 @@ main(int argc, char **argv)
fwait = 1;
break;
case 'x':
- pt++;
+ pt = !!sg_get_num(optarg);
break;
case '6':
mode6 = 1;