- unformat_input_t input;
- int parsed =0;
- char *name;
- char *chroot_path = 0;
- u8 *chroot_u8;
-
- unformat_init_command_line (&input, argv);
-
- while (unformat_check_input (&input) != UNFORMAT_END_OF_INPUT) {
- if (unformat(&input, "show-verbose")) {
- show (chroot_path, 1);
- parsed++;
- } else if (unformat (&input, "show")) {
- show (chroot_path, 0);
- parsed++;
- } else if (unformat (&input, "client-scan")) {
- svm_client_scan(chroot_path);
- parsed++;
- } else if (unformat (&input, "repair")) {
- repair(chroot_path, 0 /* fix it */);
- parsed++;
- } else if (unformat (&input, "crash")) {
- repair (chroot_path, 1 /* crash it */);
- parsed++;
- } else if (unformat (&input, "trace-on %s", &name)) {
- trace (chroot_path, name, 1);
- parsed++;
- } else if (unformat (&input, "trace-off %s", &name)) {
- trace (chroot_path, name, 0);
- parsed++;
- } else if (unformat (&input, "chroot %s", &chroot_u8)) {
- chroot_path = (char *) chroot_u8;
- } else {
- break;
- }
+ unformat_input_t input;
+ int parsed = 0;
+ char *name;
+ char *chroot_path = 0;
+ u8 *chroot_u8;
+
+ unformat_init_command_line (&input, argv);
+
+ while (unformat_check_input (&input) != UNFORMAT_END_OF_INPUT)
+ {
+ if (unformat (&input, "show-verbose"))
+ {
+ show (chroot_path, 1);
+ parsed++;
+ }
+ else if (unformat (&input, "show"))
+ {
+ show (chroot_path, 0);
+ parsed++;
+ }
+ else if (unformat (&input, "client-scan"))
+ {
+ svm_client_scan (chroot_path);
+ parsed++;
+ }
+ else if (unformat (&input, "repair"))
+ {
+ repair (chroot_path, 0 /* fix it */ );
+ parsed++;
+ }
+ else if (unformat (&input, "crash"))
+ {
+ repair (chroot_path, 1 /* crash it */ );
+ parsed++;
+ }
+ else if (unformat (&input, "trace-on %s", &name))
+ {
+ trace (chroot_path, name, 1);
+ parsed++;
+ }
+ else if (unformat (&input, "trace-off %s", &name))
+ {
+ trace (chroot_path, name, 0);
+ parsed++;
+ }
+ else if (unformat (&input, "chroot %s", &chroot_u8))
+ {
+ chroot_path = (char *) chroot_u8;
+ }
+ else
+ {
+ break;
+ }