MCPcopy Create free account
hub / github.com/OpenPrinting/cups / print_fatal_error

Function print_fatal_error

tools/ipptool.c:3488–3517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3486 */
3487
3488static void
3489print_fatal_error(
3490 ipptool_test_t *data, /* I - Test data */
3491 const char *s, /* I - Printf-style format string */
3492 ...) /* I - Additional arguments as needed */
3493{
3494 char buffer[10240]; /* Format buffer */
3495 va_list ap; /* Pointer to arguments */
3496
3497
3498 /*
3499 * Format the error message...
3500 */
3501
3502 va_start(ap, s);
3503 vsnprintf(buffer, sizeof(buffer), s, ap);
3504 va_end(ap);
3505
3506 /*
3507 * Then output it...
3508 */
3509
3510 if (data->output == IPPTOOL_OUTPUT_PLIST)
3511 {
3512 print_xml_header(data);
3513 print_xml_trailer(data, 0, buffer);
3514 }
3515
3516 _cupsLangPrintf(stderr, "ipptool: %s", buffer);
3517}
3518
3519
3520/*

Callers 6

do_monitor_printer_stateFunction · 0.85
do_testsFunction · 0.85
error_cbFunction · 0.85
token_cbFunction · 0.85
with_valueFunction · 0.85

Calls 3

print_xml_headerFunction · 0.85
print_xml_trailerFunction · 0.85
_cupsLangPrintfFunction · 0.85

Tested by

no test coverage detected