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/CheckPassword.c

    r7892 r7917  
    1515  int status;
    1616
    17   if (DEBUG) fprintf (stderr, "waiting for password %s\n", PASSWORD);
     17  if (DEBUG) gprint (GP_ERR, "waiting for password %s\n", PASSWORD);
    1818
    1919  status = ExpectCommand (BindSocket, strlen(PASSWORD), 0.1, &message);
    2020  if (status != 0) {
    21     if (DEBUG) fprintf (stderr, "failed connection\n");
     21    if (DEBUG) gprint (GP_ERR, "failed connection\n");
    2222    FreeIOBuffer (&message);
    2323    close (BindSocket);
     
    2525  }
    2626  if (strncmp (message.buffer, PASSWORD, strlen(PASSWORD))) {
    27     if (DEBUG) fprintf (stderr, "invalid password\n");
     27    if (DEBUG) gprint (GP_ERR, "invalid password\n");
    2828    close (BindSocket);
    2929    return (FALSE);
    3030  }
    31   if (DEBUG) fprintf (stderr, "accepted password (%s)\n", message.buffer);
     31  if (DEBUG) gprint (GP_ERR, "accepted password (%s)\n", message.buffer);
    3232 
    3333  return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.