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

Function ipp_set_error

cups/ipp.c:6687–6703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6685 */
6686
6687static void
6688ipp_set_error(ipp_status_t status, /* I - Status code */
6689 const char *format, /* I - Printf-style error string */
6690 ...) /* I - Additional arguments as needed */
6691{
6692 va_list ap; /* Pointer to additional args */
6693 char buffer[2048]; /* Message buffer */
6694 cups_lang_t *lang = cupsLangDefault();
6695 /* Current language */
6696
6697
6698 va_start(ap, format);
6699 vsnprintf(buffer, sizeof(buffer), _cupsLangString(lang, format), ap);
6700 va_end(ap);
6701
6702 _cupsSetError(status, buffer, 0);
6703}
6704
6705
6706/*

Callers 1

ippValidateAttributeFunction · 0.85

Calls 3

cupsLangDefaultFunction · 0.85
_cupsLangStringFunction · 0.85
_cupsSetErrorFunction · 0.85

Tested by

no test coverage detected