_cupsLangPrintf do not output anything

bui bqbao at yahoo.com
Mon Jan 17 22:04:39 PST 2011


> On Jan 15, 2011, at 2:55 AM, bui wrote:
> > ...
> > My question is why _cupsLangPrintf doesn't print the output to screen? =
> What dependencies it needs?
> > What is the file in which _cupsLangPrintf is defined? Can i replace it =
> with printf and will it affect the operation of CUPS?
>
>
> _cupsLangPrintf is used to produce localized output from the various =
> CUPS programs. It is defined in cups/langprintf.c.
>
> That said, if _cupsLangPrintf is failing then something more serious is =
> happening - can you run any of the "test" programs from the CUPS sources =
> on the ARM system to see if there are any failures?
>
> ________________________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>

Thank you, Michael,

Below is the output when I run test commands on the ARM platform
testhi command hang, I have to type Ctrl-Z to kill it
testtemplate, cupstestppd, cupstestdsc output nothing

I don't know how to run betest, testlpd, testsub

# ./test1284 /dev/usb/lp0
/dev/usb/lp0:
backendGetDeviceID(fd=3, device_id=0xbef228f8, device_id_size=1024, make_model=0xbef224f8, make_model_size=1024, scheme="test", uri=0xbef220f8, uri_size=102)
backendGetDeviceID: device_id="MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCL,DW-PCL;MDL:hp LaserJet 1015;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1015;MEM:13"
backendGetMakeModel(device_id="MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCL,DW-PCL;MDL:hp LaserJet 1015;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1015;MEM:13)
    device_id="MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCL,DW-PCL;MDL:hp LaserJet 1015;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1015;MEM:13MB;COMMENT:RES=6"
    make_model="hp LaserJet 1015"
    uri="test://HP/LaserJet%201015"
#


# /etc/init.d/cups restart
cups: restarted scheduler.
# ./testadmin
Current server settings:
    SystemGroup=lpadmin sys root
    DefaultAuthType=Basic
    _debug_logging=0
    _remote_admin=0
    _remote_any=0
    _remote_printers=1
    _share_printers=0
    _user_cancel_any=0
#

# ./testarray
cupsArrayNew: PASS
cupsArrayUserData: PASS
cupsArrayAdd: PASS
cupsArrayCount: PASS
cupsArrayFirst: PASS
cupsArrayNext: PASS
cupsArrayLast: PASS
cupsArrayPrev: PASS
cupsArrayFind: PASS
cupsArrayCurrent: PASS
cupsArrayDup: PASS
cupsArrayRemove: PASS
cupsArrayClear: PASS
Load unique words: 0 words in 0.034 seconds (0 words/sec), PASS
Delete While Iterating: FAIL (cupsArrayNext returned NULL!)
cupsArraySave: PASS
cupsArrayRestore: PASS

1 TEST(S) FAILED!

# ./testcgi
cgiInitialize: FAIL (no file!)
#

# ./testcups
cupsGetDests: FAIL
#

# ./testfile
cupsFileOpen(write): PASS
cupsFileCompression(): PASS
cupsFilePuts(): PASS
cupsFilePrintf(): PASS
cupsFilePutChar(): PASS
cupsFileWrite(): PASS
cupsFilePuts("partial line"): PASS
cupsFileTell(): PASS
cupsFileClose(): PASS

cupsFileOpen(read): PASS
cupsFileGets(): PASS
cupsFileCompression(): PASS
cupsFileGetConf(): PASS
cupsFileGetChar(): PASS
cupsFileRead(): PASS
cupsFileGetChar(partial line): PASS
cupsFileTell(): PASS
cupsFileClose(): PASS

cupsFileOpen(write compressed): PASS
cupsFileCompression(): PASS
cupsFilePuts(): PASS
cupsFilePrintf(): PASS
cupsFilePutChar(): PASS
cupsFileWrite(): PASS
cupsFilePuts("partial line"): PASS
cupsFileTell(): PASS
cupsFileClose(): PASS

cupsFileOpen(read): PASS
cupsFileGets(): PASS
cupsFileCompression(): PASS
cupsFileGetConf(): PASS
cupsFileGetChar(): PASS
cupsFileRead(): PASS
cupsFileGetChar(partial line): PASS
cupsFileTell(): PASS
cupsFileClose(): PASS

cupsFileOpen(append 0): PASS
cupsFileTell(): PASS
cupsFileWrite(256 512-byte records): PASS
cupsFileTell(): PASS

cupsFileOpen(read 0): PASS
cupsFileSeek(), cupsFileRead(): PASS

cupsFileOpen(append 1): PASS
cupsFileTell(): PASS
cupsFileWrite(256 512-byte records): PASS
cupsFileTell(): PASS

cupsFileOpen(read 1): PASS
cupsFileSeek(), cupsFileRead(): PASS

cupsFileOpen(append 2): PASS
cupsFileTell(): PASS
cupsFileWrite(256 512-byte records): PASS
cupsFileTell(): PASS

cupsFileOpen(read 2): PASS
cupsFileSeek(), cupsFileRead(): PASS

cupsFileOpen(append 3): PASS
cupsFileTell(): PASS
cupsFileWrite(256 512-byte records): PASS
cupsFileTell(): PASS

cupsFileOpen(read 3): PASS
cupsFileSeek(), cupsFileRead(): PASS

cupsFileOpenFd(fd, "r"): PASS
cupsFileClose(no read): PASS

cupsFileFind: PASS (/bin/cat)

ALL TESTS PASSED!

# ./testspeed
testspeed: Simulating 5 clients with 100 requests to /var/run/cups/cups.sock with no encryption...
testspeed(752): Started...
testspeed(753): Started...
testspeed(754): Started...
testspeed(755): Started...
testspeed(756): Started...
testspeed(755): 100 requests in 2.0s (0.020s/r, 50.8r/s)
testspeed(755): Ended (0)...
testspeed(753): 100 requests in 2.0s (0.020s/r, 49.7r/s)
testspeed(753): Ended (0)...
testspeed(756): 100 requests in 2.0s (0.020s/r, 49.4r/s)
testspeed(756): Ended (0)...
testspeed(754): 100 requests in 2.1s (0.021s/r, 48.6r/s)
testspeed(752): 100 requests in 2.0s (0.020s/r, 49.3r/s)
testspeed(752): Ended (0)...
testspeed(754): Ended (0)...
testspeed: 5x100=500 requests in 2.0s (0.004s/r, 250.0r/s)
#
# ./testlang
Language = "en_US"
Encoding = "us-ascii"
No       = "No"
Yes      = "Yes"
_cupsStrScand("1") number=1.000000
_cupsStrFormatd(1.000000) buffer="1"
_cupsStrScand("-1") number=-1.000000
_cupsStrFormatd(-1.000000) buffer="-1"
_cupsStrScand("3") number=3.000000
_cupsStrFormatd(3.000000) buffer="3"
_cupsStrScand("5.125") number=5.125000
_cupsStrFormatd(5.125000) buffer="5.125"

# ./testhttp
httpGetDateString()/httpGetDateTime(): PASS
httpDecode64_2()/httpEncode64_2(): PASS
httpGetHostname(): PASS (buildroot)
httpAddrGetList(buildroot): FAIL
httpSeparateURI(): PASS (33 URIs tested)
httpAssembleURI(): PASS (12 URIs tested)

1 TESTS FAILED!
#
# ./testi18n
cupsUTF8ToUTF32 of utfdemo.txt: PASS
cupsUTF8ToCharset(CUPS_EUC_JP) of utfdemo.txt: FAIL (UTF-8 to EUC-JP on line 1)
_cupsCharmapGet(CUPS_ISO8859_1): FAIL
_cupsCharmapGet(CUPS_WINDOWS_932): FAIL
_cupsCharmapGet(CUPS_EUC_JP): FAIL
_cupsCharmapGet(CUPS_EUC_TW): FAIL
cupsUTF8ToCharset(CUPS_ISO8859_1): PASS
cupsCharsetToUTF8(CUPS_ISO8859_1): PASS
cupsUTF8ToCharset(CUPS_ISO8859_7): FAIL
cupsCharsetToUTF8(CUPS_ISO8859_7): FAIL (len=-1, expected 8)
    utf8greek: 41 20 21 3d 20 ce 91 2e
    utf8dest:
cupsUTF8ToCharset(CUPS_WINDOWS_932): FAIL
cupsCharsetToUTF8(CUPS_WINDOWS_932): FAIL (len=-1, expected 9)
    utf8japan: 41 20 21 3d 20 ee 9c 80 2e
    utf8dest:
cupsUTF8ToCharset(CUPS_EUC_JP): FAIL
cupsCharsetToUTF8(CUPS_EUC_JP): FAIL (len=-1, expected 9)
    utf8japan: 41 20 21 3d 20 ee 9c 80 2e
    utf8dest:
cupsUTF8ToCharset(CUPS_WINDOWS_950): FAIL
cupsCharsetToUTF8(CUPS_WINDOWS_950): FAIL (len=-1, expected 9)
    utf8taiwan: 41 20 21 3d 20 e4 b9 82 2e
    utf8dest:
cupsUTF8ToCharset(CUPS_EUC_TW): FAIL
cupsCharsetToUTF8(CUPS_EUC_TW): FAIL (len=-1, expected 9)
    utf8taiwan: 41 20 21 3d 20 e4 b9 82 2e
    utf8dest:
#
# ./testppd
ppdOpenFile: FAIL (Unable to open PPD file on line 0)
ppdMarkDefaults: PASS
ppdEmitString (defaults): FAIL (0 bytes instead of 319)
ppdEmitString (custom size and string): FAIL (0 bytes instead of 386)
ppdLocalizeIPPReason(text): FAIL ("" instead of "Foo Reason")
ppdLocalizeIPPReason(http): FAIL ("" instead of "http://foo/bar.html")
ppdLocalizeIPPReason(help): FAIL ("" instead of "help:anchor='foo'%20bookID=Vendor%20Help")
ppdLocalizeIPPReason(file): FAIL ("" instead of "/help/foo/bar.html")
ppdLocalizeIPPReason(fr text): FAIL ("" instead of "La Long Foo Reason")
ppdLocalizeIPPReason(zh_TW text): FAIL ("" instead of "Number 1 Foo Reason")
#
# ./testipp
Create Sample Request: PASS
Write Sample to Memory: PASS
Read Sample from Memory: PASS
_ippFindOption("printer-type"): PASS

Core IPP tests passed.
#
# ./testraster
_cupsRasterExecPS("setpagedevice"): PASS
_cupsRasterExecPS("roll"): PASS
_cupsRasterExecPS("dup index"): PASS
_cupsRasterExecPS("%%Begin/EndFeature code"): PASS
cupsRasterOpen(CUPS_RASTER_WRITE): PASS
cupsRasterWriteHeader2: PASS
cupsRasterWritePixels: PASS
cupsRasterWriteHeader2: PASS
cupsRasterWritePixels: PASS
cupsRasterWriteHeader2: PASS
cupsRasterWritePixels: PASS
cupsRasterWriteHeader2: PASS
cupsRasterWritePixels: PASS
cupsRasterOpen(CUPS_RASTER_READ): PASS
cupsRasterReadHeader2: cupsRasterReadPixels: PASS
cupsRasterReadHeader2: cupsRasterReadPixels: PASS
cupsRasterReadHeader2: cupsRasterReadPixels: PASS
cupsRasterReadHeader2: cupsRasterReadPixels: PASS
#

# ./testnotify
DEBUG: argc=1
DEBUG: argv[0]="./testnotify"

DEBUG: ippReadFile() returned IPP_ERROR!
#

# ./testmime
MIME database types:

MIME database filters:
#







More information about the cups-devel mailing list