| /openbmc/u-boot/include/linux/ |
| H A D | printk.h | 17 #define printk(fmt, ...) \ argument 18 printf(fmt, ##__VA_ARGS__) 24 #define no_printk(fmt, ...) \ argument 27 printk(fmt, ##__VA_ARGS__); \ 31 #define __printk(level, fmt, ...) \ argument 33 level < CONFIG_LOGLEVEL ? printk(fmt, ##__VA_ARGS__) : 0; \ 37 #define pr_fmt(fmt) fmt argument 40 #define pr_emerg(fmt, ...) \ argument 41 __printk(0, pr_fmt(fmt), ##__VA_ARGS__) 42 #define pr_alert(fmt, ...) \ argument [all …]
|
| H A D | compat.h | 35 #define dev_dbg(dev, fmt, args...) \ argument 36 debug(fmt, ##args) 37 #define dev_vdbg(dev, fmt, args...) \ argument 38 debug(fmt, ##args) 39 #define dev_info(dev, fmt, args...) \ argument 40 printf(fmt, ##args) 41 #define dev_err(dev, fmt, args...) \ argument 42 printf(fmt, ##args) 43 #define dev_warn(dev, fmt, args...) \ argument 44 printf(fmt, ##args) [all …]
|
| /openbmc/qemu/scripts/coccinelle/ |
| H A D | err-bad-newline.cocci | 4 expression errp, err, eno, cls, fmt, ap; 8 error_vreport(fmt, ap)@p 10 warn_vreport(fmt, ap)@p 12 info_vreport(fmt, ap)@p 14 error_report(fmt, ...)@p 16 warn_report(fmt, ...)@p 18 info_report(fmt, ...)@p 20 error_report_once(fmt, ...)@p 22 warn_report_once(fmt, ...)@p 24 error_setg(errp, fmt, ...)@p [all …]
|
| /openbmc/qemu/tests/qemu-iotests/ |
| H A D | 178 | 85 local fmt="$1" 87 $QEMU_IMG convert -f "$fmt" -O "$IMGFMT" "$TEST_IMG" "$@" "$TEST_IMG.converted" 106 for fmt in $(echo -e "raw\n$IMGFMT\n" | sort -u); do 108 echo "== Empty $fmt input image ($ofmt) ==" 110 make_test_img_with_fmt "$fmt" 0 111 $QEMU_IMG measure --output=$ofmt -f "$fmt" -O "$IMGFMT" "$TEST_IMG" 113 convert_and_show_size "$fmt" 116 echo "== $fmt input image with data ($ofmt) ==" 118 make_test_img_with_fmt "$fmt" 1G 119 $QEMU_IMG measure --output=$ofmt -f "$fmt" -O "$IMGFMT" "$TEST_IMG" [all …]
|
| /openbmc/qemu/tests/qemu-iotests/tests/ |
| H A D | inactive-node-nbd.out | 9 disk-fmt active: False 10 {"execute": "block-export-add", "arguments": {"id": "exp0", "node-name": "disk-fmt", "type": "nbd",… 12 disk-fmt active: True 14 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]} 21 {"execute": "blockdev-set-active", "arguments": {"active": false, "node-name": "disk-fmt"}} 23 disk-fmt active: False 24 …", "arguments": {"allow-inactive": false, "id": "exp0", "node-name": "disk-fmt", "type": "nbd", "w… 26 disk-fmt active: True 28 {"return": [{"id": "exp0", "node-name": "disk-fmt", "shutting-down": false, "type": "nbd"}]} 35 {"execute": "blockdev-set-active", "arguments": {"active": false, "node-name": "disk-fmt"}} [all …]
|
| /openbmc/qemu/tests/multiboot/ |
| H A D | libc.c | 63 void printf(const char *fmt, ...) in printf() argument 72 va_start(ap, fmt); in printf() 74 for (; *fmt; fmt++) { in printf() 75 if (*fmt != '%') { in printf() 76 print_char(*fmt); in printf() 79 fmt++; in printf() 81 if (*fmt == '#') { in printf() 82 fmt++; in printf() 88 if (*fmt == 'l') { in printf() 89 fmt++; in printf() [all …]
|
| /openbmc/qemu/hw/net/ |
| H A D | vmxnet_debug.h | 81 #define VMW_SHPRN(fmt, ...) \ argument 84 printf("[%s][SH][%s]: " fmt "\n", VMXNET_DEVICE_NAME, __func__, \ 89 #define VMW_CBPRN(fmt, ...) \ argument 92 printf("[%s][CB][%s]: " fmt "\n", VMXNET_DEVICE_NAME, __func__, \ 97 #define VMW_PKPRN(fmt, ...) \ argument 100 printf("[%s][PK][%s]: " fmt "\n", VMXNET_DEVICE_NAME, __func__, \ 105 #define VMW_WRPRN(fmt, ...) \ argument 108 printf("[%s][WR][%s]: " fmt "\n", VMXNET_DEVICE_NAME, __func__, \ 113 #define VMW_ERPRN(fmt, ...) \ argument 116 printf("[%s][ER][%s]: " fmt "\n", VMXNET_DEVICE_NAME, __func__, \ [all …]
|
| /openbmc/qemu/tests/tcg/minilib/ |
| H A D | printf.c | 47 void ml_printf(const char *fmt, ...) in ml_printf() argument 56 va_start(ap, fmt); in ml_printf() 58 for (; *fmt; fmt++) { in ml_printf() 59 if (*fmt != '%') { in ml_printf() 60 __sys_outc(*fmt); in ml_printf() 63 fmt++; in ml_printf() 65 if (*fmt == '#') { in ml_printf() 66 fmt++; in ml_printf() 72 if (*fmt == 'l') { in ml_printf() 73 fmt++; in ml_printf() [all …]
|
| /openbmc/u-boot/fs/ubifs/ |
| H A D | debug.h | 156 #define ubifs_dbg_msg(type, fmt, ...) \ argument 157 pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \ 161 #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ argument 163 pr_debug("UBIFS DBG " type " (pid %d): " fmt "%s\n", current->pid, \ 184 #define ubifs_dbg_msg(type, fmt, ...) \ argument 185 pr_debug("UBIFS DBG " type ": " fmt "\n", \ 189 #define ubifs_dbg_msg_key(type, key, fmt, ...) do { \ argument 191 pr_debug("UBIFS DBG " type ": " fmt "%s\n", \ 199 #define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__) argument 201 #define dbg_jnl(fmt, ...) ubifs_dbg_msg("jnl", fmt, ##__VA_ARGS__) argument [all …]
|
| /openbmc/qemu/util/ |
| H A D | qemu-print.c | 21 int qemu_vprintf(const char *fmt, va_list ap) in qemu_vprintf() argument 25 return monitor_vprintf(cur_mon, fmt, ap); in qemu_vprintf() 27 return vprintf(fmt, ap); in qemu_vprintf() 34 int qemu_printf(const char *fmt, ...) in qemu_printf() argument 39 va_start(ap, fmt); in qemu_printf() 40 ret = qemu_vprintf(fmt, ap); in qemu_printf() 49 int qemu_vfprintf(FILE *stream, const char *fmt, va_list ap) in qemu_vfprintf() argument 52 return monitor_vprintf(monitor_cur(), fmt, ap); in qemu_vfprintf() 54 return vfprintf(stream, fmt, ap); in qemu_vfprintf() 61 int qemu_fprintf(FILE *stream, const char *fmt, ...) in qemu_fprintf() argument [all …]
|
| H A D | error-report.c | 32 int error_printf(const char *fmt, ...) in error_printf() argument 37 va_start(ap, fmt); in error_printf() 38 ret = error_vprintf(fmt, ap); in error_printf() 187 static void vreport(report_type type, const char *fmt, va_list ap) in vreport() argument 215 error_vprintf(fmt, ap); in vreport() 226 void error_vreport(const char *fmt, va_list ap) in error_vreport() argument 228 vreport(REPORT_TYPE_ERROR, fmt, ap); in error_vreport() 237 void warn_vreport(const char *fmt, va_list ap) in warn_vreport() argument 239 vreport(REPORT_TYPE_WARNING, fmt, ap); in warn_vreport() 249 void info_vreport(const char *fmt, va_list ap) in info_vreport() argument [all …]
|
| H A D | error.c | 56 ErrorClass err_class, const char *fmt, va_list ap, in error_setv() argument 68 err->msg = g_strdup_vprintf(fmt, ap); in error_setv() 87 ErrorClass err_class, const char *fmt, ...) in error_set_internal() argument 91 va_start(ap, fmt); in error_set_internal() 92 error_setv(errp, src, line, func, err_class, fmt, ap, NULL); in error_set_internal() 98 const char *fmt, ...) in error_setg_internal() argument 102 va_start(ap, fmt); in error_setg_internal() 103 error_setv(errp, src, line, func, ERROR_CLASS_GENERIC_ERROR, fmt, ap, NULL); in error_setg_internal() 109 int os_errno, const char *fmt, ...) in error_setg_errno_internal() argument 114 va_start(ap, fmt); in error_setg_errno_internal() [all …]
|
| /openbmc/qemu/include/qemu/ |
| H A D | error-report.h | 33 int error_vprintf(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); 34 int error_printf(const char *fmt, ...) G_GNUC_PRINTF(1, 2); 36 void error_vreport(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); 37 void warn_vreport(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); 38 void info_vreport(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0); 40 void error_report(const char *fmt, ...) G_GNUC_PRINTF(1, 2); 41 void warn_report(const char *fmt, ...) G_GNUC_PRINTF(1, 2); 42 void info_report(const char *fmt, ...) G_GNUC_PRINTF(1, 2); 44 bool error_report_once_cond(bool *printed, const char *fmt, ...) 46 bool warn_report_once_cond(bool *printed, const char *fmt, ...) [all …]
|
| /openbmc/u-boot/lib/ |
| H A D | vsprintf.c | 393 int precision, int flags, const char *fmt) in uuid_string() argument 398 switch (*(++fmt)) { in uuid_string() 438 static char *pointer(const char *fmt, char *buf, char *end, void *ptr, in pointer() argument 453 switch (*fmt) { in pointer() 464 switch (fmt[1]) { in pointer() 482 if (fmt[1] == '6') in pointer() 485 if (fmt[1] == '4') in pointer() 494 flags, fmt); in pointer() 507 static int vsnprintf_internal(char *buf, size_t size, const char *fmt, in vsnprintf_internal() argument 532 for (; *fmt ; ++fmt) { in vsnprintf_internal() [all …]
|
| H A D | tiny-printf.c | 160 static void pointer(struct printf_info *info, const char *fmt, void *ptr) in pointer() argument 167 switch (*fmt) { in pointer() 171 switch (fmt[1]) { in pointer() 185 if (fmt[1] == '4') in pointer() 198 static int _vprintf(struct printf_info *info, const char *fmt, va_list va) in _vprintf() argument 206 while ((ch = *(fmt++))) { in _vprintf() 214 ch = *(fmt++); in _vprintf() 216 ch = *(fmt++); in _vprintf() 219 ch = *(fmt++); in _vprintf() 227 ch = *fmt++; in _vprintf() [all …]
|
| /openbmc/libmctp/ |
| H A D | libmctp-log.h | 15 mctp_prlog(int level __unused, const char *fmt __unused, ...) in mctp_prlog() 21 void mctp_prlog(int level, const char *fmt, ...) 30 #define mctp_prerr(fmt, ...) \ argument 31 mctp_prlog(MCTP_LOG_ERR, pr_fmt(fmt), ##__VA_ARGS__) 32 #define mctp_prwarn(fmt, ...) \ argument 33 mctp_prlog(MCTP_LOG_WARNING, pr_fmt(fmt), ##__VA_ARGS__) 34 #define mctp_prinfo(fmt, ...) \ argument 35 mctp_prlog(MCTP_LOG_INFO, pr_fmt(fmt), ##__VA_ARGS__) 36 #define mctp_prdebug(fmt, ...) \ argument 37 mctp_prlog(MCTP_LOG_DEBUG, pr_fmt(fmt), ##__VA_ARGS__)
|
| /openbmc/qemu/rust/bits/src/ |
| H A D | lib.rs | 215 impl ::std::fmt::Binary for $struct_name { 216 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 225 impl ::std::fmt::LowerHex for $struct_name { 226 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 227 <$type as ::std::fmt::LowerHex>::fmt(&self.0, f) 231 impl ::std::fmt::Octal for $struct_name { 232 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 233 <$type as ::std::fmt::Octal>::fmt(&self.0, f) 237 impl ::std::fmt::UpperHex for $struct_name { 238 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { [all …]
|
| /openbmc/qemu/include/qapi/ |
| H A D | error.h | 317 #define error_setg(errp, fmt, ...) \ argument 319 (fmt), ## __VA_ARGS__) 322 const char *fmt, ...) 333 #define error_setg_errno(errp, os_error, fmt, ...) \ argument 335 (os_error), (fmt), ## __VA_ARGS__) 338 int os_error, const char *fmt, ...) 347 #define error_setg_win32(errp, win32_err, fmt, ...) \ argument 349 (win32_err), (fmt), ## __VA_ARGS__) 352 int win32_err, const char *fmt, ...) 385 const char *fmt, ...) [all …]
|
| /openbmc/qemu/tests/tcg/multiarch/libs/ |
| H A D | float_helpers.c | 71 char *fmt; in fmt_16() local 72 asprintf(&fmt, "f16(%#04x)", num); in fmt_16() 73 return fmt; in fmt_16() 135 char *fmt; in fmt_f32() local 136 asprintf(&fmt, "f32(%02.20a:%#010x)", num, single_as_hex); in fmt_f32() 137 return fmt; in fmt_f32() 203 char *fmt; in fmt_f64() local 204 asprintf(&fmt, "f64(%02.20a:%#020" PRIx64 ")", num, double_as_hex); in fmt_f64() 205 return fmt; in fmt_f64() 214 char *fmt; in fmt_flags() local [all …]
|
| /openbmc/qemu/tests/tcg/s390x/ |
| H A D | fma.c | 47 static void interpret_tables(union val *r, bool *xi, int fmt, in interpret_tables() argument 79 switch (fmt) { in interpret_tables() 90 fprintf(stderr, "Unsupported fmt: %d\n", fmt); in interpret_tables() 94 memcpy(r, default_nans[fmt], sizeof(*r)); in interpret_tables() 99 snan_to_qnan(r->buf, fmt); in interpret_tables() 104 snan_to_qnan(r->buf, fmt); in interpret_tables() 114 memcpy(r, signed_floats[fmt][CLASS_MINUS_INF].v[0], sizeof(*r)); in interpret_tables() 116 memcpy(r, signed_floats[fmt][CLASS_PLUS_INF].v[0], sizeof(*r)); in interpret_tables() 118 memcpy(r, signed_floats[fmt][CLASS_MINUS_ZERO].v[0], sizeof(*r)); in interpret_tables() 120 memcpy(r, signed_floats[fmt][CLASS_PLUS_ZERO].v[0], sizeof(*r)); in interpret_tables() [all …]
|
| /openbmc/u-boot/drivers/mtd/ubispl/ |
| H A D | ubispl.h | 120 #define ubi_dbg(fmt, ...) printf("UBI: debug:" fmt "\n", ##__VA_ARGS__) argument 122 #define ubi_dbg(fmt, ...) argument 126 #define ubi_msg(fmt, ...) argument 128 #define ubi_msg(fmt, ...) printf("UBI: " fmt "\n", ##__VA_ARGS__) argument 131 #define ubi_warn(fmt, ...) printf("UBI warning: " fmt "\n", ##__VA_ARGS__) argument 133 #define ubi_err(fmt, ...) printf("UBI error: " fmt "\n", ##__VA_ARGS__) argument
|
| /openbmc/u-boot/tools/gdb/ |
| H A D | error.c | 16 Warning(char *fmt, ...) in Warning() argument 22 va_start(args, fmt); in Warning() 23 vfprintf(stderr, fmt, args); in Warning() 30 Error(char *fmt, ...) in Error() argument 36 va_start(args, fmt); in Error() 37 vfprintf(stderr, fmt, args); in Error() 46 Perror(char *fmt, ...) in Perror() argument 54 va_start(args, fmt); in Perror() 55 vfprintf(stderr, fmt, args); in Perror()
|
| /openbmc/u-boot/common/ |
| H A D | log_console.c | 16 int fmt = gd->log_fmt; in log_console_emit() local 28 if (fmt & (1 << LOGF_LEVEL)) in log_console_emit() 30 if (fmt & (1 << LOGF_CAT)) in log_console_emit() 32 if (fmt & (1 << LOGF_FILE)) in log_console_emit() 34 if (fmt & (1 << LOGF_LINE)) in log_console_emit() 36 if (fmt & (1 << LOGF_FUNC)) in log_console_emit() 38 if (fmt & (1 << LOGF_MSG)) in log_console_emit() 39 printf("%s%s", fmt != (1 << LOGF_MSG) ? " " : "", rec->msg); in log_console_emit()
|
| /openbmc/qemu/rust/qemu-api/src/ |
| H A D | cell.rs | 217 fmt, 308 impl<T: fmt::Debug + Copy> fmt::Debug for BqlCell<T> { 309 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 310 self.get().fmt(f) in fmt() 314 impl<T: fmt::Display + Copy> fmt::Display for BqlCell<T> { 315 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 316 self.get().fmt(f) in fmt() 856 impl<T: fmt::Debug> fmt::Debug for BqlRef<'_, T> { 857 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method 858 (**self).fmt(f) in fmt() [all …]
|
| /openbmc/u-boot/drivers/mtd/ubi/ |
| H A D | debug.h | 32 #define ubi_dbg_msg(type, fmt, ...) \ argument 33 pr_debug("UBI DBG " type " (pid %d): " fmt "\n", current->pid, \ 37 #define dbg_gen(fmt, ...) ubi_dbg_msg("gen", fmt, ##__VA_ARGS__) argument 39 #define dbg_eba(fmt, ...) ubi_dbg_msg("eba", fmt, ##__VA_ARGS__) argument 41 #define dbg_wl(fmt, ...) ubi_dbg_msg("wl", fmt, ##__VA_ARGS__) argument 43 #define dbg_io(fmt, ...) ubi_dbg_msg("io", fmt, ##__VA_ARGS__) argument 45 #define dbg_bld(fmt, ...) ubi_dbg_msg("bld", fmt, ##__VA_ARGS__) argument
|