$  Copyright(c) 2002 Sun Microsystems, Inc.
$  All rights reserved.
$  Use is subject to license terms.

$  #ident  "@(#)usbppptest.msg 1.4 08/20/02"


$ --------------------------------------------------
$ VERBOSE
$ --------------------------------------------------

1 "Msg received: Type %d %s."
2 "Options: %s"
7 "Starting Printer Test."
8 "Finished Printer Test (check for printed data pattern after transmit delay)."
9 "Printer: Inst= %d, ID= %s, Mfg= %s, Model= %s, Phys_path= %s, Printer_path= %s, Command= %s, Comment= %s"
10 "prnio_state: status = 0x%08x (PRN_READY= 0x%08x)"
11 "prnio_state: ok pins= 0x%02x"
12 "get_ecpp_status: state=0x%x"
13 "Sending ASCII data"
14 "Sending postscript data"
15 "OS release %d.%d"


$ --------------------------------------------------
$ INFO
$ --------------------------------------------------

2000  %s specific arguments:\n\
	dev=<device name>	(default=/dev/printers/1)\n\
	getdevid=Enable|Disable	(default= Enable)\n\
	printer=Enable|Disable	(printer test - requires printer; default= Disable)\n\
	data=ascii,postscript	(printer data type)\n\
	delay=<number>		(Seconds delay after printing; default= 60)\n
 
2001  "ECPPIOC_GETPARMS: write_timeout=%d, mode=0x%x"

2006  "%s= must be followed by a valid text string."\n
2007  "%s must be followed by a number."\n

2021 Busy: <%s: Could not open, error = %s>
2022 Error: <%s: Could not open, error = %s>

2025 , Connector status = loopback connector or device attached, Pin Status = 0x%x(%s)
2026 , Connector status = device attached, Pin status = 0x%x(%s)
2027 , Connector status = device not attached or offline, Pin status = 0x%x(%s)
2028 , Connector status = unknown, Pin status = 0x%x(%s)



$ --------------------------------------------------
$ DEBUG
$ --------------------------------------------------

3003  "%s: write(%d, 0x%x...0x%x, %d)\n"

3006  "Device = %s (inst %d)"
3007  "DevID Read%d: inst= %d, id= %s, mfg= %s, model= %s, phys_path= %s, printer_path= %s, fd= 0x%x"
3008  "Printer [%s] Found"
3009  "Search returns [ 0x%08x ]"
3010  "Free printer %s"
3011  "Open %s OK"
3012  "phys_path = %s"
3013  "printerinfo"
3014  "\t%s : %s \n\t\t\t%s\n"
3015  "id=%s, rlen=%d"
3016  "printer string=%s\n"
3017  "get_ecpp_status: state= 0x%08x\n"
3018  "printer_info [ %s ] "
3019   "None prnio ret= %d\n"
3020   "Found is_a_prnio (ret=%d)
3021   "%s: write(%d, si=%d, ei=%d, size=0x%0x)"
3022    "OS Release %s"

$ --------------------------------------------------
$ WARNING
$ --------------------------------------------------

4000   "No MFG string"
4001   "Can't get prnio_state"
4002   "Excessive write delay; printer may be off-line"

$ --------------------------------------------------
$ ERROR
$ --------------------------------------------------
6000   "Cannot find %s (inst %d)"
6001   "Device ID string miscompared : ID read1 [%s] / ID read2 [%s]"
6002   "Cannot get printer_info for %s"
6003   "Can't get printer status"

$ --------------------------------------------------
$ FATAL
$ --------------------------------------------------

8001 "%s: device does not exist or is otherwise inaccessible." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8002  "Must be super user (root) to execute." \
Probable_Cause(s): \
<Operator error.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8003 "Failed to open %s (%s)." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8004 "Failed ioctl %s, device = %s, error = %s." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8005 "Device not in correct mode, device = %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8010 "%s: Failed to allocate %d bytes of memory, error = %s." \
Probable_Cause(s): \
<System resources temporarily not available, try again.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8011 "%s: write() failed, device = %s, error = %s." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8012 "%s: write count is wrong, expected = %d, observed = %d." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8014 "%s: device busy." \
Probable_Cause(s): \
<Another process is using the device.> \
<Someone is printing with the device.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Make sure no other process is using the device.> \
<Make sure no one is printing to the device.> \
<Examine system message files (/var/adm/messages) for other information.>

8016  "ecpp device busy: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8017  "Paper out: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Printer out of paper.> \
<Faulty printer.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Check printer.> \
<Examine system message files (/var/adm/messages) for other information.>"

8018  "Printer offline: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<No printer connected or printer offline.> \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Check printer and cable.> \
<Examine system message files (/var/adm/messages) for other information.>

8019  "Printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Check printer and cable.> \
<Examine system message files (/var/adm/messages) for other information.>"

8020  "Printer unplugged: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Check printer and cable.> \
<Examine system message files (/var/adm/messages) for other information.>"

8021  "Unrecognized printer error: device %s, expected mode = 0x%x, observed mode = 0x%x." \
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
<Check printer and cable.> \
<Examine system message files (/var/adm/messages) for other information.>"

8022  "Must select data type to send to printer" \
Probable_Cause(s): \
<Operator error.>

8023  "mmap() failed on %s (%s)" \
Probable_Cause(s): \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

8024 "Failed to open %s (%s)" \
Probable_Cause(s): \
<File not installed in current directory.> \
<User does not have read privileges.> \
<System software problem.> 

8025 "fstat() failed on %s (%s)" \
Probable_Cause(s): \
<File not installed in current directory.> \
<User does not have read privileges.> \
<System software problem.> \
Recommended_Action(s): \
<Examine system message files (/var/adm/messages) for other information.>

$ ER_BAD_OPTIONS
8026 "Illegal options passed to usb pptest %s." \
Probable_Cause(s): \
<User error.> \
Recommended_Action(s): \
< Check usage by typing usbppptest -u>

$ ER_CALLOC
8027 "Can't calloc"\
Probable_Cause(s): \
<Out of memory. software error.> \
Recommended_Action(s): \
< None >

$ ER_GETDEVID
8028 "ECPPIOC_GETDEVID failed (%s)"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
< Check printer cable connectivity >

$ ER_PRNIOC_IFCAP
8030 "PRNIOC_GET_IFCAP failed: %s"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
< Check printer cable connectivity >

$ ER_1284_STATUS
8031 "prnio_state: PRNIOC_GET_1284_STATUS failed: %s"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
< Check printer cable connectivity >

$ ER_PAPER_OUT
8032 "prnio_state: pins = 0x%02x (PRN_1284_PE)"
Probable_Cause(s): \
<Out of paper> \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
<System software problem.> \
Recommended_Action(s): \
< Check paper supply >
< Check printer cable connectivity >

$ ER_UNPLUGGED
8033 "prnio_state: pins = 0x%02x (OFF/UNPLUGGED)"\
Probable_Cause(s): \
<Printer is off or unplugged> \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
Recommended_Action(s): \
< Check if printer is off or unplugged>
< Check printer cable connectivity >

$ ER_OFFLINE
8034 "prnio_state: pins = 0x%02x (OFFLINE)\n"\
Probable_Cause(s): \
<Printer is off-line> \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
Recommended_Action(s): \
< Check if printer is off or unplugged>
< Check printer cable connectivity >

$ ER_NOFAULT
8035 "prnio_state: pins = 0x%02x (NOFAULT)"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
Recommended_Action(s): \
< Check if paper jammed>\
< Check printer cable connectivity >

$ ER_UNKNOWN
8036 "prnio_state: pins = 0x%02x (UNKNOWN)"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
Recommended_Action(s): \
< Check if paper jammed>\
< Check printer cable connectivity >

$ ER_GET_ECPP_STATUS
8037  "can't get_ecpp_status"\
Probable_Cause(s): \
<Faulty printer or cable.> \
<Faulty ecpp device or motherboard hardware.> \
Recommended_Action(s): \
< Check printer cable connectivity >

$ ER_OS_REL_NOT_5DOT
8038  "Not on release %s"\
Probable_Cause(s): \
<Not running Solaris release 5.x>

$ ER_OS_REL_NOT_S9
8039  "usbppptest supports release 5.9, not %d.%d"\
Probable_Cause(s): \
<Not running Solaris release 5.9>

$ ER_TEST_MODE_NOTSUPPORTED
8040  "Exclusive and online mode not supported"\
Probable_Cause(s): \
<Illegal command line arguement>

$ ER_PS_NOTSUPPORTED
8041  "Printer command set does not support postscript printing"\
Probable_Cause(s): \
<Printer not a postscript printerr>

$ Probe 

10001 "WARNING: ecpp device (%s) exists but could not be opened, error = %s.\n"
10003 "ERROR: Must select data to send to printer."
10008 "usbppptest: sysinfo SI_RELEASE failed (%s)"
