Changeset 37462
- Timestamp:
- Oct 4, 2014, 5:52:22 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/opihi
- Files:
-
- 2 edited
-
pantasks/controller_status.c (modified) (2 diffs)
-
pcontrol/status.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/opihi/pantasks/controller_status.c
r23530 r37462 3 3 int controller_status (int argc, char **argv) { 4 4 5 int status;6 char command[1024] ;5 int i, status; 6 char command[1024], tmpline[1024]; 7 7 IOBuffer buffer; 8 8 9 if (argc != 1) { 10 gprint (GP_ERR, "USAGE: controller status\n"); 9 if ((argc > 1) && (!strcasecmp(argv[1], "help"))) { 10 gprint (GP_ERR, "USAGE: controller status [options]\n"); 11 gprint (GP_ERR, " OPTIONS:\n"); 12 gprint (GP_ERR, " -cmd command\n"); 13 gprint (GP_ERR, " -host hostname\n"); 14 gprint (GP_ERR, " -state state\n"); 15 gprint (GP_ERR, " -age seconds\n"); 16 gprint (GP_ERR, " +jobs [-nohost]\n"); 17 gprint (GP_ERR, " +host [-nojobs]\n"); 11 18 return (FALSE); 12 19 } … … 19 26 } 20 27 28 snprintf (command, 1024, "status"); 29 for (i = 1; i < argc; i++) { 30 snprintf (tmpline, 1024, "%s %s", command, argv[i]); 31 strcpy (command, tmpline); 32 } 21 33 22 sprintf (command, "status");23 34 InitIOBuffer (&buffer, 0x100); 24 35 -
branches/eam_branches/ipp-20140904/Ohana/src/opihi/pcontrol/status.c
r36623 r37462 85 85 86 86 usage: 87 gprint (GP_ ERR, "USAGE: status [-cmd command] [-host hostname] [-state state] [-age seconds] [+jobs,-nohost] [+host,-nojobs]\n");87 gprint (GP_LOG, "USAGE: status [-cmd command] [-host hostname] [-state state] [-age seconds] [+jobs,-nohost] [+host,-nojobs]\n"); 88 88 return FALSE; 89 89 }
Note:
See TracChangeset
for help on using the changeset viewer.
