| 3486 | */ |
| 3487 | |
| 3488 | static void |
| 3489 | print_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 | /* |
no test coverage detected