Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259975
b: refs/heads/master
c: 4737d7e
h: refs/heads/master
i:
  259973: b9dfa1d
  259971: 5b4656e
  259967: 44e4d34
v: v3
  • Loading branch information
matt mooney authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent ba7f288 commit d33f955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 25567a3979ed5c6056608f9c0d7574f319283c12
refs/heads/master: 4737d7e3321a2f1e8804ceee3f938eff09593c0a
13 changes: 8 additions & 5 deletions trunk/drivers/staging/usbip/userspace/src/usbip.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ static int usbip_version(int argc, char *argv[])
(void) argc;
(void) argv;

printf("%s\n", usbip_version_string);
printf(PROGNAME " (%s)\n", usbip_version_string);
return 0;
}

static int run_command(const struct command *cmd, int argc, char *argv[])
{
dbg("running command: `%s'\n", cmd->name);
dbg("running command: `%s'", cmd->name);
return cmd->fn(argc, argv);
}

Expand Down Expand Up @@ -163,8 +163,11 @@ int main(int argc, char *argv[])
usbip_use_syslog = 1;
openlog("", LOG_PID, LOG_USER);
break;
case '?':
printf("usbip: invalid option\n");
default:
goto err_out;
usbip_usage();
goto out;
}
}

Expand All @@ -180,8 +183,8 @@ int main(int argc, char *argv[])
}
}

err_out:
usbip_usage();
/* invalid command */
usbip_help(0, NULL);
out:
return (rc > -1 ? EXIT_SUCCESS : EXIT_FAILURE);
}

0 comments on commit d33f955

Please sign in to comment.