Home
last modified time | relevance | path

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

12345

/xen/xen/common/
A Dvsprintf.c404 switch ( fmt[1] ) in pointer()
581 for (; *fmt ; ++fmt) { in vsnprintf()
593 switch (*fmt) { in vsnprintf()
606 ++fmt; in vsnprintf()
618 ++fmt; in vsnprintf()
622 ++fmt; in vsnprintf()
632 if (*fmt == 'h' || *fmt == 'l' || *fmt == 'L' || in vsnprintf()
633 *fmt =='Z' || *fmt == 'z') { in vsnprintf()
635 ++fmt; in vsnprintf()
638 ++fmt; in vsnprintf()
[all …]
/xen/tools/xenstore/
A Dutils.c13 static void default_xprintf(const char *fmt, ...) in default_xprintf() argument
17 va_start(args, fmt); in default_xprintf()
18 vfprintf(stderr, fmt, args); in default_xprintf()
23 void (*xprintf)(const char *fmt, ...) = default_xprintf;
25 void barf(const char *fmt, ...) in barf() argument
33 va_start(arglist, fmt); in barf()
34 bytes = vasprintf(&str, fmt, arglist); in barf()
44 void barf_perror(const char *fmt, ...) in barf_perror() argument
52 va_start(arglist, fmt); in barf_perror()
53 bytes = vasprintf(&str, fmt, arglist); in barf_perror()
A Dtalloc.c391 va_start(ap, fmt); in talloc_set_name()
392 talloc_set_name_v(ptr, fmt, ap); in talloc_set_name()
419 va_start(ap, fmt); in talloc_named()
420 talloc_set_name_v(ptr, fmt, ap); in talloc_named()
490 va_start(ap, fmt); in talloc_init()
491 talloc_set_name_v(ptr, fmt, ap); in talloc_init()
1112 vsnprintf(ret, len+1, fmt, ap2); in talloc_vasprintf()
1130 va_start(ap, fmt); in talloc_asprintf()
1131 ret = talloc_vasprintf(t, fmt, ap); in talloc_asprintf()
1177 vsnprintf(s+s_len, len+1, fmt, ap2); in talloc_vasprintf_append()
[all …]
A Dutils.h24 void barf(const char *fmt, ...) __attribute__((noreturn));
25 void barf_perror(const char *fmt, ...) __attribute__((noreturn));
27 extern void (*xprintf)(const char *fmt, ...);
A Dtalloc.h106 void talloc_set_name(const void *ptr, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
109 const char *fmt, ...) PRINTF_ATTRIBUTE(3,4);
115 void *talloc_init(const char *fmt, ...) PRINTF_ATTRIBUTE(1,2);
131 char *talloc_vasprintf(const void *t, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(2,0);
132 char *talloc_asprintf(const void *t, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
134 const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);
/xen/xen/include/xen/
A Dlib.h98 extern void debugtrace_printk(const char *fmt, ...)
104 debugtrace_printk(const char *fmt, ...) {} in debugtrace_printk() argument
112 #define printk_once(fmt, args...) \ argument
118 printk(fmt, ## args); \
129 #define gprintk(lvl, fmt, args...) \ argument
136 dprintk(const char *lvl, const char *fmt, ...) {} in dprintk() argument
140 gdprintk(const char *lvl, const char *fmt, ...) {} in gdprintk() argument
144 #define dprintk(lvl, fmt, args...) \ argument
146 #define gdprintk(lvl, fmt, args...) \ argument
147 printk(XENLOG_GUEST lvl "%s:%d:%pv " fmt, \
[all …]
/xen/stubdom/vtpmmgr/
A Dlog.h67 void printk(const char *fmt, ...);
69 #define vtpmloginfo(module, fmt, args...) \ argument
71 printk("INFO[%s]: " fmt, module_names[module], ##args); \
74 #define vtpmloginfomore(module, fmt, args...) \ argument
76 printk(fmt,##args); \
79 #define vtpmlogerror(module, fmt, args...) \ argument
80 printk("ERROR[%s]: " fmt, module_names[module], ##args);
/xen/xen/common/libelf/
A Dlibelf-private.h28 #define elf_msg(elf, fmt, args ... ) \ argument
29 if (elf->verbose) printk(fmt, ## args )
30 #define elf_err(elf, fmt, args ... ) \ argument
31 printk(fmt, ## args )
80 #define elf_msg(elf, fmt, args ... ) \ argument
81 elf_call_log_callback(elf, 0, fmt , ## args );
82 #define elf_err(elf, fmt, args ... ) \ argument
83 elf_call_log_callback(elf, 1, fmt , ## args );
85 void elf_call_log_callback(struct elf_binary*, bool iserr, const char *fmt,...);
/xen/tools/libxl/
A Dosdeps.c26 int vasprintf(char **buffer, const char *fmt, va_list ap) in vasprintf() argument
33 nchars = vsnprintf(*buffer, 0, fmt, ap); in vasprintf()
50 nchars = vsnprintf(*buffer, size, fmt, ap); in vasprintf()
57 int asprintf(char **buffer, char *fmt, ...) in asprintf() argument
62 va_start (ap, fmt); in asprintf()
63 status = vasprintf (buffer, fmt, ap); in asprintf()
/xen/tools/console/daemon/
A Dutils.h38 #define dolog(val, fmt, ...) do { \ argument
40 fprintf(stderr, fmt "\n", ## __VA_ARGS__); \
41 syslog(val, fmt, ## __VA_ARGS__); \
44 #define dolog(val, fmt, ...) fprintf(stderr, fmt "\n", ## __VA_ARGS__) argument
/xen/tools/golang/xenlight/
A Dhelpers.gen.go141 return fmt.Errorf("converting field Enable: %v", err)
158 return fmt.Errorf("converting field Enable: %v", err)
188 return fmt.Errorf("converting field Enable: %v", err)
308 return fmt.Errorf("converting field Uuid: %v", err)
339 return fmt.Errorf("converting field Uuid: %v", err)
610 return fmt.Errorf("converting field Hap: %v", err)
613 return fmt.Errorf("converting field Oos: %v", err)
650 return fmt.Errorf("converting field Hap: %v", err)
653 return fmt.Errorf("converting field Oos: %v", err)
1150 return fmt.Errorf("converting field Nx: %v", err)
[all …]
/xen/tools/debugger/gdbsx/gx/
A Dxg_dummy.c31 xgtrc(const char *fn, const char *fmt, ...) in xgtrc() argument
37 va_start(args, fmt); in xgtrc()
38 (void)vsnprintf(buf, sizeof(buf), fmt, args); in xgtrc()
45 xgprt(const char *fn, const char *fmt, ...) in xgprt() argument
51 va_start(args, fmt); in xgprt()
52 (void)vsnprintf(buf, sizeof(buf), fmt, args); in xgprt()
A Dgx_utils.c25 gxprt(const char *fmt, ...) in gxprt() argument
30 va_start(args, fmt); in gxprt()
31 (void)vsnprintf(buf, sizeof(buf), fmt, args); in gxprt()
/xen/tools/misc/
A Dxencov_split35 fmt = bo_prefix + str(off) + 's'
36 fn, = struct.unpack_from(fmt, content)
39 fmt = bo_prefix + 'I'
40 sz, = struct.unpack_from(fmt, content)
41 content = content[struct.calcsize(fmt):]
43 fmt = bo_prefix + str(sz) + 's'
44 payload, = struct.unpack_from(fmt, content)
/xen/tools/firmware/rombios/32bit/
A Dutil.c301 for ( ; *fmt != '\0'; fmt++ ) in _doprint()
303 if ( *fmt != '%' ) in _doprint()
305 put(*fmt); in _doprint()
310 c = *++fmt; in _doprint()
316 c = *++fmt; in _doprint()
319 for ( pad = 0; isdigit(c); c = *++fmt ) in _doprint()
325 c = *++fmt; in _doprint()
370 put(*fmt); in _doprint()
380 int printf(const char *fmt, ...) in printf() argument
384 va_start(ap, fmt); in printf()
[all …]
/xen/tools/python/scripts/
A Dverify-stream-v252 def unpack_exact(fmt): argument
54 sz = struct.calcsize(fmt)
55 return struct.unpack(fmt, rdexact(sz))
75 def read_stream(fmt): argument
79 if fmt == "xl":
80 fmt = skip_xl_header()
82 if fmt == "libxc":
/xen/tools/python/xen/migration/
A Dtests.py18 for fmt, sz in ( (libxc.IHDR_FORMAT, 24),
30 self.assertEqual(calcsize(fmt), sz)
37 for fmt, sz in ( (libxl.HDR_FORMAT, 16),
42 self.assertEqual(calcsize(fmt), sz)
A Dverify.py33 def unpack_exact(self, fmt): argument
35 sz = calcsize(fmt)
36 return unpack(fmt, self.rdexact(sz))
/xen/tools/xenbackendd/
A Dxenbackendd.c66 dolog(int pri, const char *fmt, ...) in dolog() argument
69 va_start(ap, fmt); in dolog()
70 vfprintf(stderr, fmt, ap); in dolog()
74 va_start(ap, fmt); in dolog()
75 vsyslog(pri, fmt, ap); in dolog()
80 dodebug(const char *fmt, ...) in dodebug() argument
86 va_start(ap, fmt); in dodebug()
87 vfprintf(stdout, fmt, ap); in dodebug()
/xen/tools/xl/
A Dxl_utils.c30 void dolog(const char *file, int line, const char *func, char *fmt, ...) in dolog() argument
36 va_start(ap, fmt); in dolog()
37 rc = vasprintf(&s, fmt, ap); in dolog()
46 void xvasprintf(char **strp, const char *fmt, va_list ap) in xvasprintf() argument
48 int r = vasprintf(strp, fmt, ap); in xvasprintf()
55 void xasprintf(char **strp, const char *fmt, ...) in xasprintf() argument
58 va_start(ap, fmt); in xasprintf()
59 xvasprintf(strp, fmt, ap); in xasprintf()
/xen/tools/firmware/hvmloader/
A Dutil.c565 for ( ; *fmt != '\0'; fmt++ ) in _doprint()
567 if ( *fmt != '%' ) in _doprint()
569 emit(arg, *fmt); in _doprint()
574 c = *++fmt; in _doprint()
580 c = *++fmt; in _doprint()
589 c = *++fmt; in _doprint()
645 emit(arg, *fmt); in _doprint()
660 int printf(const char *fmt, ...) in printf() argument
664 va_start(ap, fmt); in printf()
665 _doprint(__put, NULL, fmt, ap); in printf()
[all …]
/xen/stubdom/
A Dvtpm_extern.patch8 -void (*tpm_log)(int priority, const char *fmt, ...);
9 +extern void (*tpm_log)(int priority, const char *fmt, ...);
14 #define error(fmt, ...) tpm_log(TPM_LOG_ERROR, "%s:%d: Error: " fmt "\n", \
/xen/tools/tests/x86_emulator/
A Dwrappers.c44 int emul_printf(const char *fmt, ...) in emul_printf() argument
50 va_start(varg, fmt); in emul_printf()
51 rc = vprintf(fmt, varg); in emul_printf()
/xen/xen/drivers/acpi/
A Dosl.c48 void __init acpi_os_printf(const char *fmt, ...) in acpi_os_printf() argument
51 va_start(args, fmt); in acpi_os_printf()
52 acpi_os_vprintf(fmt, args); in acpi_os_printf()
56 void __init acpi_os_vprintf(const char *fmt, va_list args) in acpi_os_vprintf() argument
60 vsnprintf(buffer, sizeof(buffer), fmt, args); in acpi_os_vprintf()
/xen/tools/libxc/
A Dxc_private.c158 const char *fmt, va_list args) { in xc_reportv() argument
169 fmt_l = strlen(fmt); in xc_reportv()
170 if (fmt_l && fmt[fmt_l-1]=='\n' && fmt_l < sizeof(fmt_nonewline)) { in xc_reportv()
171 memcpy(fmt_nonewline, fmt, fmt_l-1); in xc_reportv()
173 fmt = fmt_nonewline; in xc_reportv()
182 vsnprintf(msg, XC_MAX_ERROR_MSG_LEN-1, fmt, args); in xc_reportv()
195 va_start(args,fmt); in xc_report()
196 xc_reportv(xch,lg,level,code,fmt,args); in xc_report()
200 void xc_report_error(xc_interface *xch, int code, const char *fmt, ...) in xc_report_error() argument
203 va_start(args, fmt); in xc_report_error()
[all …]

Completed in 30 milliseconds

12345