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/lib.shell/CommandOps.c

    r4583 r7917  
    3333  }
    3434  if (Nc == -1) {
    35     fprintf (stderr, "programming error: command not found\n");
     35    gprint (GP_ERR, "programming error: command not found\n");
    3636    return (FALSE);
    3737  }
     
    5757  }
    5858  if (EXACT) {
    59     if (VERBOSE) fprintf (stderr, "no exact match to %s\n", name);
     59    if (VERBOSE) gprint (GP_ERR, "no exact match to %s\n", name);
    6060    return (NULL);
    6161  }
     
    7373  if (Nmatch > 1) {
    7474    if (VERBOSE) {
    75       fprintf (stderr, "ambiguous command: %s ( ", name);
     75      gprint (GP_ERR, "ambiguous command: %s ( ", name);
    7676      for (i = 0; i < Nmatch; i++) {
    77         fprintf (stderr, "%s ", commands[match[i]].name);
     77        gprint (GP_ERR, "%s ", commands[match[i]].name);
    7878      }
    79       fprintf (stderr, ")\n");
     79      gprint (GP_ERR, ")\n");
    8080    }
    8181    return (NULL);
    8282  }
    83   if (VERBOSE) fprintf (stderr, "%s: Command not found.\n", name);
     83  if (VERBOSE) gprint (GP_ERR, "%s: Command not found.\n", name);
    8484  return (NULL);
    8585
Note: See TracChangeset for help on using the changeset viewer.