Changeset 29 for trunk/gui/util/prntobj


Ignore:
Timestamp:
Apr 8, 2013, 9:15:42 PM (12 years ago)
Author:
Alex Taylor
Message:

Add more informative output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/util/prntobj/prntobj.c

    r28 r29  
    9797        printf("  <driver.model> The printer driver/model, e.g. \"PSCRIPT.HP Laserjet 4L\"\n");
    9898        printf("  <title>        Descriptive name to use as the object title\n");
    99         printf("\nExample:\n  prntobj GENERICP SLPR2 \"PSCRIPT.Generic Postscript Printer\" \"My Printer\"\n");
     99        printf("\nExample:\n  prntobj GenericP SLPR2 \"PSCRIPT.Generic Postscript Printer\" \"My Printer\"\n");
    100100        return 1;
    101101    }
     
    118118    devinfo.pszDrivers     = pszModel;
    119119    devinfo.usTimeOut      = 45;
     120    printf("Creating print device %s for port %s\n", szDeviceName, pszPortName );
    120121    rc = SplCreateDevice( NULL, 3, &devinfo, sizeof( devinfo ));
    121122    if ( rc != NO_ERROR ) {
     
    125126
    126127    // Create the queue
     128    if ( strlen( pszQueueName ) > 8 ) pszQueueName[8] = '\0';
    127129    qinfo.pszName       = pszQueueName;
    128130    qinfo.uPriority     = PRQ_DEF_PRIORITY;
     
    132134    qinfo.pszPrinters   = szDeviceName;
    133135    qinfo.pszDriverName = pszModel;
     136    printf("Creating printer queue %s\n", pszQueueName );
    134137    rc = SplCreateQueue( NULL, 3, &qinfo, sizeof( qinfo ));
    135138    if ( rc != NO_ERROR ) {
Note: See TracChangeset for help on using the changeset viewer.