Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 1150) sorted by relevance

12345678910>>...46

/titanic_41/usr/src/uts/common/io/xge/hal/include/
H A Dxge-debug.h127 #define xge_trace_aux(fmt) xge_os_vatrace(g_xge_os_tracebuf, fmt) argument
129 #define xge_trace_aux(fmt) xge_os_vaprintf(fmt) argument
143 #define xge_debug(module, level, fmt) { \ argument
147 xge_trace_aux(fmt); \
153 #define xge_trace_aux(fmt...) xge_os_trace(g_xge_os_tracebuf, fmt) argument
155 #define xge_trace_aux(fmt...) xge_os_printf(fmt) argument
158 #define xge_debug(module, level, fmt...) { \ argument
162 xge_trace_aux(fmt); \
169 static inline void xge_debug_stats(xge_debug_level_e level, char *fmt, ...) { in xge_debug_stats() argument
171 xge_debug(module, level, fmt); in xge_debug_stats()
[all …]
/titanic_41/usr/src/lib/libast/common/disc/
H A Dsfkeyprintf.c42 Sffmt_t fmt; member
156 if (fp->fmt.t_str && fp->fmt.n_str > 0 && (v = fmtbuf(fp->fmt.n_str + 1))) in getfmt()
158 memcpy(v, fp->fmt.t_str, fp->fmt.n_str); in getfmt()
159 v[fp->fmt.n_str] = 0; in getfmt()
188 if (i == ':' && fp->fmt.fmt == 's' && strlen(a) > 4 && !isalnum(*(a + 4))) in getfmt()
204 t = fp->fmt.t_str; in getfmt()
205 fp->fmt.t_str = b; in getfmt()
206 h = (*fp->lookup)(fp->handle, &fp->fmt, a, &s, &n); in getfmt()
207 fp->fmt.t_str = t; in getfmt()
213 h = (*fp->lookup)(fp->handle, &fp->fmt, a, &s, &n); in getfmt()
[all …]
/titanic_41/usr/src/uts/sun/sys/dada/adapters/ghd/
H A Dghd_debug.h39 extern void ghd_err(const char *fmt, ...) __PRINTFLIKE(1);
56 #define GDBG_PRF(fmt) prom_printf fmt argument
59 #define GDBG_PRF(fmt) ghd_err fmt argument
64 #define GDBG_FLAG_CHK(flag, fmt) if (ghd_debug_flags & (flag)) GDBG_PRF(fmt) argument
68 #define GDBG_FLAG_CHK(flag, fmt) argument
77 #define GDBG_ERROR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_ERROR, fmt) argument
79 #define GDBG_ERROR(fmt) ghd_err fmt argument
86 #define GDBG_INTR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_INTR, fmt) argument
87 #define GDBG_PEND_INTR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_PEND_INTR, fmt) argument
88 #define GDBG_START(fmt) GDBG_FLAG_CHK(GDBG_FLAG_START, fmt) argument
[all …]
/titanic_41/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_debug.h39 extern void ghd_err(const char *fmt, ...) __PRINTFLIKE(1);
56 #define GDBG_PRF(fmt) prom_printf fmt argument
59 #define GDBG_PRF(fmt) ghd_err fmt argument
64 #define GDBG_FLAG_CHK(flag, fmt) if (ghd_debug_flags & (flag)) GDBG_PRF(fmt) argument
68 #define GDBG_FLAG_CHK(flag, fmt) argument
77 #define GDBG_ERROR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_ERROR, fmt) argument
79 #define GDBG_ERROR(fmt) ghd_err fmt argument
86 #define GDBG_INTR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_INTR, fmt) argument
87 #define GDBG_PEND_INTR(fmt) GDBG_FLAG_CHK(GDBG_FLAG_PEND_INTR, fmt) argument
88 #define GDBG_START(fmt) GDBG_FLAG_CHK(GDBG_FLAG_START, fmt) argument
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Derr.c89 warncore(FILE *fp, const char *fmt, va_list args) in warncore() argument
98 if (fmt != NULL) { in warncore()
99 (void) vfprintf(fp, fmt, args); in warncore()
115 _vwarnxfp(FILE *fp, const char *fmt, va_list args) in _vwarnxfp() argument
119 lk = warncore(fp, fmt, args); in _vwarnxfp()
124 vwarnx(const char *fmt, va_list args) in vwarnx() argument
126 _vwarnxfp(stderr, fmt, args); in vwarnx()
130 _vwarnfp(FILE *fp, const char *fmt, va_list args) in _vwarnfp() argument
135 lk = warncore(fp, fmt, args); in _vwarnfp()
136 if (fmt != NULL) { in _vwarnfp()
[all …]
H A Dnlspath_checks.c259 extract_format(const char *fmt, char *norm, size_t sz, int strict) in extract_format() argument
274 printf("Format \"%s\" canonical form: ", fmt); in extract_format()
277 for (; *fmt; fmt++) { in extract_format()
278 if (*fmt == '%') { in extract_format()
279 if (*++fmt == '%') in extract_format()
282 if (*fmt == '\0') in extract_format()
289 while (*fmt && isdigit(*fmt)) in extract_format()
290 t = t * 10 + *fmt++ - '0'; in extract_format()
292 if (*fmt == '$') { in extract_format()
294 fmt++; in extract_format()
[all …]
/titanic_41/usr/src/cmd/printf/
H A Dprintf.c96 char *format, *fmt, *start; in main() local
126 fmt = format = *argv; in main()
127 (void) escape(fmt, 1, &len); /* backslash interpretation */ in main()
137 start = fmt; in main()
138 while (fmt < format + len) { in main()
139 if (fmt[0] == '%') { in main()
140 (void) fwrite(start, 1, PTRDIFF(fmt, start), in main()
142 if (fmt[1] == '%') { in main()
145 fmt += 2; in main()
147 fmt = doformat(fmt, &rval); in main()
[all …]
/titanic_41/usr/src/uts/intel/io/dktp/controller/ata/
H A Data_debug.h45 #define ADBG_ERROR(fmt) ADBG_FLAG_CHK(ADBG_FLAG_ERROR, fmt) argument
47 #define ADBG_ERROR(fmt) ghd_err fmt
54 #define ADBG_WARN(fmt) ADBG_FLAG_CHK(ADBG_FLAG_WARN, fmt) argument
55 #define ADBG_TRACE(fmt) ADBG_FLAG_CHK(ADBG_FLAG_TRACE, fmt) argument
56 #define ADBG_INIT(fmt) ADBG_FLAG_CHK(ADBG_FLAG_INIT, fmt) argument
57 #define ADBG_TRANSPORT(fmt) ADBG_FLAG_CHK(ADBG_FLAG_TRANSPORT, fmt) argument
58 #define ADBG_DMA(fmt) ADBG_FLAG_CHK(ADBG_FLAG_DMA, fmt) argument
59 #define ADBG_ARQ(fmt) ADBG_FLAG_CHK(ADBG_FLAG_ARQ, fmt) argument
77 #define ADBG_FLAG_CHK(flag, fmt) if (ata_debug & (flag)) GDBG_PRF(fmt) argument
79 #define ADBG_FLAG_CHK(flag, fmt) argument
/titanic_41/usr/src/lib/libast/common/uwin/
H A Derr.c48 errmsg(int level, int code, const char* fmt, va_list ap) in errmsg() argument
63 errorv(fmt, level|ERROR_NOID, ap); in errmsg()
68 extern void verr(int code, const char* fmt, va_list ap) in verr() argument
70 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); in verr()
73 extern void err(int code, const char* fmt, ...) in err() argument
77 va_start(ap, fmt); in err()
78 errmsg(ERROR_ERROR|ERROR_SYSTEM, code, fmt, ap); in err()
82 extern void verrx(int code, const char* fmt, va_list ap) in verrx() argument
84 errmsg(ERROR_ERROR, code, fmt, ap); in verrx()
87 extern void errx(int code, const char* fmt, ...) in errx() argument
[all …]
/titanic_41/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dprintw.c49 printw(const char *fmt, ...) in printw() argument
55 __m_trace("printw(%p = \"%s\", ...)", fmt, fmt); in printw()
58 va_start(ap, fmt); in printw()
59 code = vw_printw(stdscr, fmt, ap); in printw()
66 mvprintw(int y, int x, const char *fmt, ...) in mvprintw() argument
72 __m_trace("mvprintw(%d, %d, %p = \"%s\", ...)", y, x, fmt, fmt); in mvprintw()
75 va_start(ap, fmt); in mvprintw()
77 code = vw_printw(stdscr, fmt, ap); in mvprintw()
84 mvwprintw(WINDOW *w, int y, int x, const char *fmt, ...) in mvwprintw() argument
90 __m_trace("mvwprintw(%p, %d, %d, %p = \"%s\", ...)", w, y, x, fmt, fmt); in mvwprintw()
[all …]
H A Dscanw.c49 scanw(const char *fmt, ...) in scanw() argument
55 __m_trace("scanw(%p = \"%s\", ...)", fmt, fmt); in scanw()
58 va_start(ap, fmt); in scanw()
59 code = vw_scanw(stdscr, fmt, ap); in scanw()
66 mvscanw(int y, int x, const char *fmt, ...) in mvscanw() argument
72 __m_trace("mvscanw(%d, %d, %p = \"%s\", ...)", y, x, fmt, fmt); in mvscanw()
75 va_start(ap, fmt); in mvscanw()
77 code = vw_scanw(stdscr, fmt, ap); in mvscanw()
84 mvwscanw(WINDOW *w, int y, int x, const char *fmt, ...) in mvwscanw() argument
90 __m_trace("mvwscanw(%p, %d, %d, %p = \"%s\", ...)", w, y, x, fmt, fmt); in mvwscanw()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dprintf.c73 cprintf(const char *fmt, va_list adx, int sl, const char *prefix, in cprintf() argument
93 STRLOG_MAKE_MSGID(fmt, msgid); in cprintf()
95 if (strchr("^!?", fmt[0]) != NULL) { in cprintf()
96 if (fmt[0] == '^') in cprintf()
98 else if (fmt[0] == '!' || in cprintf()
101 fmt++; in cprintf()
119 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in cprintf()
182 vzprintf(zoneid_t zoneid, const char *fmt, va_list adx) in vzprintf() argument
184 cprintf(fmt, adx, SL_CONSOLE | SL_NOTE, "", "", caller(), 0, 0, 0, in vzprintf()
189 vprintf(const char *fmt, va_list adx) in vprintf() argument
[all …]
/titanic_41/usr/src/cmd/smserverd/
H A Dsmediad_err.c46 fatal(const char *fmt, ...) in fatal() argument
50 va_start(ap, fmt); in fatal()
51 (void) vsyslog(LOG_DAEMON|LOG_CRIT, fmt, ap); in fatal()
58 quit(const char *fmt, ...) in quit() argument
62 va_start(ap, fmt); in quit()
63 (void) vsyslog(LOG_DAEMON|LOG_ERR, fmt, ap); in quit()
71 noise(const char *fmt, ...) in noise() argument
75 va_start(ap, fmt); in noise()
76 (void) vsyslog(LOG_DAEMON|LOG_WARNING, fmt, ap); in noise()
81 warning(const char *fmt, ...) in warning() argument
[all …]
/titanic_41/usr/src/lib/libc/port/stdio/
H A Dscanf.c47 scanf(const char *fmt, ...) in scanf() argument
52 va_start(ap, fmt); in scanf()
53 ret = vscanf(fmt, ap); in scanf()
61 fscanf(FILE *iop, const char *fmt, ...) in fscanf() argument
66 va_start(ap, fmt); in fscanf()
67 ret = vfscanf(iop, fmt, ap); in fscanf()
75 sscanf(const char *str, const char *fmt, ...) in sscanf() argument
80 va_start(ap, fmt); in sscanf()
81 ret = vsscanf(str, fmt, ap); in sscanf()
101 _scanf_c89(const char *fmt, ...) in _scanf_c89() argument
[all …]
H A Dwscanf.c46 wscanf(const wchar_t *fmt, ...) in wscanf() argument
51 va_start(ap, fmt); in wscanf()
52 ret = vwscanf(fmt, ap); in wscanf()
59 fwscanf(FILE *iop, const wchar_t *fmt, ...) in fwscanf() argument
64 va_start(ap, fmt); in fwscanf()
65 ret = vfwscanf(iop, fmt, ap); in fwscanf()
72 swscanf(const wchar_t *wstr, const wchar_t *fmt, ...) in swscanf() argument
77 va_start(ap, fmt); in swscanf()
78 ret = vswscanf(wstr, fmt, ap); in swscanf()
99 _wscanf_c89(const wchar_t *fmt, ...) in _wscanf_c89() argument
[all …]
/titanic_41/usr/src/uts/common/io/nge/
H A Dnge_log.c47 const char *fmt; member
56 nge_vprt(const char *fmt, va_list args) in nge_vprt() argument
62 (void) vsnprintf(buf, sizeof (buf), fmt, args); in nge_vprt()
63 cmn_err(nge_log_data.level, nge_log_data.fmt, nge_log_data.who, buf); in nge_vprt()
71 nge_log(nge_t *ngep, const char *fmt, ...) in nge_log() argument
77 nge_log_data.fmt = "!%s: %s"; in nge_log()
80 va_start(args, fmt); in nge_log()
81 nge_vprt(fmt, args); in nge_log()
91 nge_problem(nge_t *ngep, const char *fmt, ...) in nge_problem() argument
97 nge_log_data.fmt = "!%s: %s"; in nge_problem()
[all …]
/titanic_41/usr/src/grub/grub-0.97/netboot/
H A Dmisc.c127 etherboot_vsprintf (char *buf, const char *fmt, const int *dp) in etherboot_vsprintf() argument
132 for ( ; *fmt != '\0'; ++fmt) in etherboot_vsprintf()
134 if (*fmt != '%') in etherboot_vsprintf()
136 buf ? *s++ = *fmt : grub_putchar (*fmt); in etherboot_vsprintf()
140 if (*++fmt == 's') in etherboot_vsprintf()
152 if (*fmt == '#') in etherboot_vsprintf()
155 fmt++; in etherboot_vsprintf()
158 if (*fmt == 'h') in etherboot_vsprintf()
161 fmt++; in etherboot_vsprintf()
164 if (*fmt == 'h') in etherboot_vsprintf()
[all …]
/titanic_41/usr/src/uts/common/io/rge/
H A Drge_log.c47 const char *fmt; member
56 rge_vprt(const char *fmt, va_list args) in rge_vprt() argument
62 (void) vsnprintf(buf, sizeof (buf), fmt, args); in rge_vprt()
63 cmn_err(rge_log_data.level, rge_log_data.fmt, rge_log_data.who, buf); in rge_vprt()
70 rge_notice(rge_t *rgep, const char *fmt, ...) in rge_notice() argument
76 rge_log_data.fmt = "%s: %s"; in rge_notice()
79 va_start(args, fmt); in rge_notice()
80 rge_vprt(fmt, args); in rge_notice()
90 rge_log(rge_t *rgep, const char *fmt, ...) in rge_log() argument
96 rge_log_data.fmt = "!%s: %s"; in rge_log()
[all …]
/titanic_41/usr/src/lib/libadm/common/
H A Dcktime.c63 setmsg(char *msg, char *fmt, size_t sz) in setmsg() argument
65 if (fmt == NULL) in setmsg()
66 fmt = DEFAULT; in setmsg()
67 (void) snprintf(msg, sz, "%s <%s>.", ERRMSG, fmt); in setmsg()
137 cktime_val(char *fmt, char *input) in cktime_val() argument
142 if ((fmt != NULL) && (fmtcheck(fmt) == 1)) in cktime_val()
145 if (fmt == NULL) in cktime_val()
146 fmt = DEFAULT; in cktime_val()
148 while (*fmt && valid) { in cktime_val()
149 if ((*fmt) == '%') { in cktime_val()
[all …]
H A Dckdate.c74 setmsg(char *msg, char *fmt, size_t sz) in setmsg() argument
76 if ((fmt == NULL) || strcmp(fmt, "%D") == 0) in setmsg()
77 fmt = "%m/%d/%y"; in setmsg()
78 (void) snprintf(msg, sz, "%s. Format is <%s>.", MESG, fmt); in setmsg()
231 ckdate_err(char *fmt, char *error) in ckdate_err() argument
235 if ((fmt != NULL) && (fmtcheck(fmt) == 1)) in ckdate_err()
237 setmsg(defmesg, fmt, MSGSIZ); in ckdate_err()
243 ckdate_hlp(char *fmt, char *help) in ckdate_hlp() argument
247 if ((fmt != NULL) && (fmtcheck(fmt) == 1)) in ckdate_hlp()
249 setmsg(defmesg, fmt, MSGSIZ); in ckdate_hlp()
[all …]
/titanic_41/usr/src/cmd/vi/port/
H A Dprintf.c71 viprintf(unsigned char *fmt, ...) in viprintf() argument
84 va_start(ap, fmt); in viprintf()
88 length2 = mbtowc(&wfcode, (char *)fmt, MB_LEN_MAX); in viprintf()
90 if (*fmt == '\0') { in viprintf()
91 fmt++; in viprintf()
94 putchar(*fmt++); in viprintf()
97 fmt++; in viprintf()
102 fmt += length2; in viprintf()
109 if (*fmt == '-') { in viprintf()
111 fmt++; in viprintf()
[all …]
/titanic_41/usr/src/uts/sun4u/starcat/sys/
H A Dsc_cvc.h56 #define CVC_DBG0(flag, fmt) \ argument
57 cvc_dbg(flag, fmt, 0, 0, 0, 0, 0);
58 #define CVC_DBG1(flag, fmt, a1) \ argument
59 cvc_dbg(flag, fmt, (uintptr_t)(a1), 0, 0, 0, 0);
60 #define CVC_DBG2(flag, fmt, a1, a2) \ argument
61 cvc_dbg(flag, fmt, (uintptr_t)(a1), (uintptr_t)(a2), 0, 0, 0);
62 #define CVC_DBG3(flag, fmt, a1, a2, a3) \ argument
63 cvc_dbg(flag, fmt, (uintptr_t)(a1), (uintptr_t)(a2), \
65 #define CVC_DBG4(flag, fmt, a1, a2, a3, a4) \ argument
66 cvc_dbg(flag, fmt, (uintptr_t)(a1), (uintptr_t)(a2), \
[all …]
/titanic_41/usr/src/uts/common/io/dmfe/
H A Ddmfe_log.c35 const char *fmt; member
55 dmfe_vprt(const char *fmt, va_list args) in dmfe_vprt() argument
61 (void) vsnprintf(buf, sizeof (buf), fmt, args); in dmfe_vprt()
62 cmn_err(prtdata.level, prtdata.fmt, prtdata.ifname, buf); in dmfe_vprt()
70 dmfe_warning(dmfe_t *dmfep, const char *fmt, ...) in dmfe_warning() argument
78 prtdata.fmt = "%s: %s"; in dmfe_warning()
81 va_start(args, fmt); in dmfe_warning()
82 dmfe_vprt(fmt, args); in dmfe_warning()
100 dmfe_error(dmfe_t *dmfep, const char *fmt, ...) in dmfe_error() argument
106 prtdata.fmt = "!%s: %s"; in dmfe_error()
[all …]
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dutils.c113 slprintf __V((char *buf, int buflen, const char *fmt, ...)) in slprintf() argument
119 va_start(args, fmt); in slprintf()
123 const char *fmt; in slprintf() local
127 fmt = va_arg(args, const char *); in slprintf()
129 n = vslprintf(buf, buflen, fmt, args); in slprintf()
138 flprintf __V((FILE *strptr, const char *fmt, ...)) in flprintf() argument
145 va_start(args, fmt); in flprintf()
148 const char *fmt; in flprintf() local
151 fmt = va_arg(args, const char *); in flprintf()
153 n = vslprintf(buf, sizeof (buf), fmt, args); in flprintf()
[all …]
/titanic_41/usr/src/lib/libfakekernel/common/
H A Dprintf.c73 fakekernel_cprintf(const char *fmt, va_list adx, int flags, in fakekernel_cprintf() argument
82 if (strchr("^!?", fmt[0]) != NULL) { in fakekernel_cprintf()
83 if (fmt[0] == '^') in fakekernel_cprintf()
85 else if (fmt[0] == '!') in fakekernel_cprintf()
87 fmt++; in fakekernel_cprintf()
94 msgp += vsnprintf(msgp, bufend - msgp, fmt, adx); in fakekernel_cprintf()
105 vpanic(const char *fmt, va_list adx) in vpanic() argument
109 panicstr = (char *)fmt; in vpanic()
113 fakekernel_cprintf(fmt, tmpargs, SL_FATAL, "fatal: ", "\n"); in vpanic()
116 (void) vsnprintf(panicbuf, sizeof (panicbuf), fmt, adx); in vpanic()
[all …]

12345678910>>...46