Lines Matching refs:format

45  * fmd_msg_gettext_nv - format the entire message for the given event
46 * fmd_msg_gettext_id - format the entire message for the given event code
47 * fmd_msg_gettext_key - format the entire message for the given dict for the
50 * fmd_msg_getitem_nv - format a single message item for the given event
51 * fmd_msg_getitem_id - format a single message item for the given event code
54 * localized strings in multi-byte format. The caller must call free() on the
85 * In order to format a human-readable message, libfmd_msg must get and set
335 * and not format strings, this doesn't help us. We resolve this nit
345 * snprintf(3C) format string for the final human-readable message.
535 fmd_msg_buf_printf(fmd_msg_buf_t *b, const char *format, ...)
542 va_start(ap, format);
543 len = vsnprintf(NULL, 0, format, ap);
545 (void) vsnprintf(buf, len + 1, format, ap);
559 fmd_msg_nv_error(const char *format, ...)
568 va_start(ap, format);
569 (void) vfprintf(stderr, format, ap);
572 if (strchr(format, '\n') == NULL)
1048 * text in 'buf' in wide-character format, and then convert it back
1159 * text in 'buf' in wide-character format, and then convert it back
1256 * It retrieves the master format string for an event, formats the individual
1266 const char *format;
1293 * is used as the format; otherwise the default from FMD.mo is used.
1295 if ((format = dgettext(dict, FMD_MSG_TEMPLATE)) == FMD_MSG_TEMPLATE)
1296 format = h->fmh_template;
1337 * then format the message again into the buffer to return it.
1339 len = snprintf(NULL, 0, format, code,
1350 (void) snprintf(buf, len + 1, format, code,