Changeset 7917 for trunk/Ohana/src/opihi/cmd.basic/list.c
- Timestamp:
- Jul 16, 2006, 10:58:49 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/list.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/list.c
r4689 r7917 23 23 if ((argc > 2) && (!strcmp (argv[2], "-split"))) { 24 24 if (argc == 3) { 25 fprintf (stderr, "USAGE: list (root) -split (word) (word) ...\n");25 gprint (GP_ERR, "USAGE: list (root) -split (word) (word) ...\n"); 26 26 return (FALSE); 27 27 } … … 38 38 39 39 if (argc != 2) { 40 fprintf (stderr, "USAGE: list (root) -- terminate with 'END'\n");40 gprint (GP_ERR, "USAGE: list (root) -- terminate with 'END'\n"); 41 41 return (FALSE); 42 42 } … … 56 56 Nread = fread (&val[Nbytes], 1, 1023, f); 57 57 if (Nread < 0) { 58 fprintf (stderr, "error reading from command\n");58 gprint (GP_ERR, "error reading from command\n"); 59 59 done = TRUE; 60 60 } … … 74 74 75 75 if (status) { 76 fprintf (stderr, "warning: exit status of command %d\n", status);76 gprint (GP_ERR, "warning: exit status of command %d\n", status); 77 77 } 78 78 … … 109 109 if (input == (char *) NULL) { 110 110 if (ThisList == 0) { 111 fprintf (stderr, "end list with 'END'\n");111 gprint (GP_ERR, "end list with 'END'\n"); 112 112 continue; 113 113 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
