summaryrefslogtreecommitdiff
path: root/cmd_debug.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2017-11-08 15:54:01 -0900
committerKent Overstreet <kent.overstreet@gmail.com>2017-11-08 16:01:26 -0900
commitb9845593296c2e9cc53780fb2ad80ddaf26862d1 (patch)
tree313487894ead3377e0268b822d970dcc88389ead /cmd_debug.c
parent8351bbc05bc163758d3410ce6d6cab8eb4441609 (diff)
update for new option code
Diffstat (limited to 'cmd_debug.c')
-rw-r--r--cmd_debug.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd_debug.c b/cmd_debug.c
index d4613ecb..7ee4e1f2 100644
--- a/cmd_debug.c
+++ b/cmd_debug.c
@@ -88,10 +88,10 @@ int cmd_dump(int argc, char *argv[])
bool force = false;
int fd, opt;
- opts.nochanges = true;
- opts.noreplay = true;
- opts.errors = BCH_ON_ERROR_CONTINUE;
- opts.degraded = true;
+ opt_set(opts, nochanges, true);
+ opt_set(opts, noreplay, true);
+ opt_set(opts, degraded, true);
+ opt_set(opts, errors, BCH_ON_ERROR_CONTINUE);
while ((opt = getopt(argc, argv, "o:fh")) != -1)
switch (opt) {
@@ -265,10 +265,10 @@ int cmd_list(int argc, char *argv[])
u64 inum;
int mode = 0, opt;
- opts.nochanges = true;
- opts.norecovery = true;
- opts.errors = BCH_ON_ERROR_CONTINUE;
- opts.degraded = true;
+ opt_set(opts, nochanges, true);
+ opt_set(opts, norecovery, true);
+ opt_set(opts, degraded, true);
+ opt_set(opts, errors, BCH_ON_ERROR_CONTINUE);
while ((opt = getopt(argc, argv, "b:s:e:i:m:fvh")) != -1)
switch (opt) {