IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/task.c

    r6687 r7917  
    2828
    2929  if (argc != 2) {
    30     fprintf (stderr, "USAGE: task <name>\n");
    31     fprintf (stderr, "  (enter commands & task functions; end with the word 'END')\n");
     30    gprint (GP_ERR, "USAGE: task <name>\n");
     31    gprint (GP_ERR, "  (enter commands & task functions; end with the word 'END')\n");
    3232    return (FALSE);
    3333  }
     
    5858
    5959    if ((ThisList == 0) && (input == (char *) NULL)) {
    60       fprintf (stderr, "end task with 'END'\n");
     60      gprint (GP_ERR, "end task with 'END'\n");
    6161      continue;
    6262    }
    6363    if ((ThisList > 0) && (input == (char *) NULL)) {
    64       fprintf (stderr, "missing 'END' in task definition\n");
     64      gprint (GP_ERR, "missing 'END' in task definition\n");
    6565      input = strcreate ("end");
    6666    }
     
    103103
    104104      case TASK_NONE:
    105         fprintf (stderr, "unknown task command %s\n", input);
     105        gprint (GP_ERR, "unknown task command %s\n", input);
    106106        break;
    107107    }
Note: See TracChangeset for help on using the changeset viewer.