Home
last modified time | relevance | path

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

1234567891011

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/platform/
A Dtrace.h579 #define OS_PRINT_ERROR0(fmt) \ argument
597 #define OS_PRINT_WARN0(fmt) \ argument
615 #define OS_PRINT_INFO0(fmt) \ argument
633 #define OS_PRINT_TRACE0(fmt) \ argument
747 #define HCI_PRINT_WARN0(fmt) \ argument
765 #define HCI_PRINT_INFO0(fmt) \ argument
897 #define SDP_PRINT_WARN0(fmt) \ argument
915 #define SDP_PRINT_INFO0(fmt) \ argument
972 #define SMP_PRINT_WARN0(fmt) \ argument
990 #define SMP_PRINT_INFO0(fmt) \ argument
[all …]
A Dtrace_app.h48 #define APP_PRINT_ERROR0(fmt) \ argument
50 #define APP_PRINT_ERROR1(fmt, arg0) \ argument
52 #define APP_PRINT_ERROR2(fmt, arg0, arg1) \ argument
66 #define APP_PRINT_WARN0(fmt) \ argument
68 #define APP_PRINT_WARN1(fmt, arg0) \ argument
70 #define APP_PRINT_WARN2(fmt, arg0, arg1) \ argument
84 #define APP_PRINT_INFO0(fmt) \ argument
86 #define APP_PRINT_INFO1(fmt, arg0) \ argument
88 #define APP_PRINT_INFO2(fmt, arg0, arg1) \ argument
102 #define APP_PRINT_TRACE0(fmt) \ argument
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Ddiag.c30 for(; *fmt != '\0'; ++fmt) { in DiagVSprintf()
33 *s++ = *fmt; in DiagVSprintf()
85 if((*fmt >= '0') && (*fmt <= '9')) in DiagVSprintf()
104 if((*fmt == 'x')||(*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) { in DiagVSprintf()
113 if((*fmt == 'p') || (*fmt == 'P')) in DiagVSprintf()
222 ret = DiagVSprintf(NULL, fmt, ((const int *)&fmt)+1); in DiagPrintf()
239 return DiagVSprintf(NULL, fmt, ((const int *)&fmt)+1); in DiagPrintfD()
274 for(; *fmt != '\0'; ++fmt) { in DiagSnPrintf()
329 if((*fmt >= '0') && (*fmt <= '9')) in DiagSnPrintf()
345 if((*fmt == 'x')||(*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) { in DiagSnPrintf()
[all …]
A Dsscanf.c179 fmt = skip_spaces(++fmt); in _vsscanf()
184 if(*fmt != '%' && *fmt) { in _vsscanf()
192 if(!*fmt) { in _vsscanf()
196 ++fmt; in _vsscanf()
206 while(!isspace(*fmt) && *fmt != '%' && *fmt) in _vsscanf()
207 fmt++; in _vsscanf()
233 if(*fmt == 'h' || _tolower(*fmt) == 'l' || in _vsscanf()
240 fmt++; in _vsscanf()
243 fmt++; in _vsscanf()
248 if(!*fmt) { in _vsscanf()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dstring_format2.py7 def test(fmt, *args): argument
8 print('{:8s}'.format(fmt) + '>' + fmt.format(*args) + '<')
11 fmt = '{'
13 fmt += '!'
14 fmt += conv
15 fmt += ':'
19 fmt += sign
20 fmt += prefix
21 fmt += width
25 fmt += type
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/platform/
A Dstdlib_patch.c150 fmt = skip_spaces(++fmt); in _vsscanf_patch()
155 if(*fmt != '%' && *fmt) { in _vsscanf_patch()
177 while(!isspace(*fmt) && *fmt != '%' && *fmt) in _vsscanf_patch()
550 for(; *fmt != '\0'; ++fmt) { in DiagSnPrintfPatch()
605 if((*fmt >= '0') && (*fmt <= '9')) in DiagSnPrintfPatch()
621 if((*fmt == 'x')||(*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) { in DiagSnPrintfPatch()
630 if((*fmt == 'p') || (*fmt == 'P')) in DiagSnPrintfPatch()
727 for(; *fmt != '\0'; ++fmt) { in VSprintfPatch()
783 if((*fmt >= '0') && (*fmt <= '9')) in VSprintfPatch()
802 if((*fmt == 'x')||(*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) { in VSprintfPatch()
[all …]
/AliOS-Things-master/components/py_engine/tests/float/
A Dstring_format2.py7 def test(fmt, *args): argument
8 print("{:8s}".format(fmt) + ">" + fmt.format(*args) + "<")
12 fmt = "{"
14 fmt += "!"
15 fmt += conv
16 fmt += ":"
20 fmt += sign
21 fmt += prefix
22 fmt += width
26 fmt += type
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_blit.h125 r = SDL_expand_byte[fmt->Rloss][((Pixel&fmt->Rmask)>>fmt->Rshift)]; \
126 g = SDL_expand_byte[fmt->Gloss][((Pixel&fmt->Gmask)>>fmt->Gshift)]; \
127 b = SDL_expand_byte[fmt->Bloss][((Pixel&fmt->Bmask)>>fmt->Bshift)]; \
221 Pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \
222 ((g>>fmt->Gloss)<<fmt->Gshift)| \
223 ((b>>fmt->Bloss)<<fmt->Bshift)| \
307 r = SDL_expand_byte[fmt->Rloss][((Pixel&fmt->Rmask)>>fmt->Rshift)]; \
308 g = SDL_expand_byte[fmt->Gloss][((Pixel&fmt->Gmask)>>fmt->Gshift)]; \
309 b = SDL_expand_byte[fmt->Bloss][((Pixel&fmt->Bmask)>>fmt->Bshift)]; \
310 a = SDL_expand_byte[fmt->Aloss][((Pixel&fmt->Amask)>>fmt->Ashift)]; \
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_common/
A Drtl8721d_ram_libc.c29 for(; *fmt != '\0'; ++fmt) { in _rtl_vsprintf()
30 if(*fmt != '%') { in _rtl_vsprintf()
31 *s++ = *fmt; in _rtl_vsprintf()
83 if((*fmt >= '0') && (*fmt <= '9')) in _rtl_vsprintf()
101 if((*fmt == 'x')||(*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) { in _rtl_vsprintf()
110 if((*fmt == 'p') || (*fmt == 'P')) in _rtl_vsprintf()
207 ret = _rtl_vsprintf(str, size, fmt, ((const int *)&fmt)+1); in _rtl_snprintf()
215 fmt1 = fmt; in _rtl_sprintf()
247 fmt1 = fmt; in _rtl_printf()
284 ret = DiagVSprintf(NULL, fmt, ((const int *)&fmt)+1); in _rtl_printf()
[all …]
/AliOS-Things-master/components/SDL2/src/gfx/
A DSDL_gfxBlitFunc.h97 r = ((pixel&fmt->Rmask)>>fmt->Rshift)<<fmt->Rloss; \
98 g = ((pixel&fmt->Gmask)>>fmt->Gshift)<<fmt->Gloss; \
99 b = ((pixel&fmt->Bmask)>>fmt->Bshift)<<fmt->Bloss; \
100 a = ((pixel&fmt->Amask)>>fmt->Ashift)<<fmt->Aloss; \
109 GFX_RGBA_FROM_PIXEL(pixel, fmt, r, g, b, a); \
110 pixel &= ~fmt->Amask; \
118 pixel = ((r>>fmt->Rloss)<<fmt->Rshift)| \
119 ((g>>fmt->Gloss)<<fmt->Gshift)| \
120 ((b>>fmt->Bloss)<<fmt->Bshift)| \
121 ((a<<fmt->Aloss)<<fmt->Ashift); \
[all …]
/AliOS-Things-master/components/ble_host/bt_host/include/common/
A Dlog.h35 #define BT_DBG(fmt, ...) \ argument
37 SYS_LOG_DBG("(%p) " fmt, k_current_get(), \
41 #define BT_ERR(fmt, ...) SYS_LOG_ERR(fmt, ##__VA_ARGS__) argument
42 #define BT_WARN(fmt, ...) SYS_LOG_WRN(fmt, ##__VA_ARGS__) argument
43 #define BT_INFO(fmt, ...) SYS_LOG_INF(fmt, ##__VA_ARGS__) argument
50 #define BT_DBG(fmt, ...) \
52 LOGD("[DBG]",fmt"\n", ##__VA_ARGS__); \
54 #define BT_ERR(fmt, ...) LOGE("[ERR]",fmt"\n", ##__VA_ARGS__)
55 #define BT_WARN(fmt, ...) LOGW("[WARN]",fmt"\n", ##__VA_ARGS__)
56 #define BT_INFO(fmt, ...) LOGI("[INFO]",fmt"\n", ##__VA_ARGS__)
[all …]
/AliOS-Things-master/hardware/chip/haas1000/drivers/thirdparty/bluetooth/bt_host/bt_common/include/common/
A Dlog.h35 __printf_like(2, 3) void bt_log(int prio, const char *fmt, ...);
37 #define BT_DBG(fmt, ...) \ argument
39 bt_log(BT_LOG_DBG, "%s (%p): " fmt, \
43 #define BT_ERR(fmt, ...) bt_log(BT_LOG_ERR, "%s: " fmt, \ argument
45 #define BT_WARN(fmt, ...) bt_log(BT_LOG_WARN, "%s: " fmt, \ argument
47 #define BT_INFO(fmt, ...) bt_log(BT_LOG_INFO, fmt, ##__VA_ARGS__) argument
59 #define BT_DBG(fmt, ...) \
61 printf(fmt"\n",\
65 #define BT_ERR(fmt, ...) printf(fmt"\n", ##__VA_ARGS__)
66 #define BT_WARN(fmt, ...) BT_DBG(fmt"\n", ##__VA_ARGS__)
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/board/amebad/src/data_uart/
A Ddata_uart.c49 for (; *fmt != '\0'; ++fmt) in data_uart_vsprintf()
51 if (*fmt != '%') in data_uart_vsprintf()
53 buf ? *s++ = *fmt : data_uart_send_char(*fmt); in data_uart_vsprintf()
56 if (*++fmt == 's') in data_uart_vsprintf()
68 if ((*fmt >= '0') && (*fmt <= '9')) in data_uart_vsprintf()
83 if ((*fmt == 'x') || (*fmt == 'X') || (*fmt == 'p') || (*fmt == 'P')) in data_uart_vsprintf()
92 if ((*fmt == 'p') || (*fmt == 'P')) in data_uart_vsprintf()
106 else if (*fmt == 'd') in data_uart_vsprintf()
131 else if (*fmt == 'c') in data_uart_vsprintf()
137 *q++ = *fmt; in data_uart_vsprintf()
[all …]
/AliOS-Things-master/components/py_engine/engine/shared/libc/
A Dprintf.c41 int DEBUG_printf(const char *fmt, ...) { in DEBUG_printf() argument
43 va_start(ap, fmt); in DEBUG_printf()
53 int printf(const char *fmt, ...);
54 int vprintf(const char *fmt, va_list ap);
60 int printf(const char *fmt, ...) { in printf() argument
62 va_start(ap, fmt); in printf()
68 int vprintf(const char *fmt, va_list ap) { in vprintf() argument
69 return mp_vprintf(&mp_plat_print, fmt, ap); in vprintf()
113 int len = mp_vprintf(&print, fmt, ap); in vsnprintf()
127 va_start(ap, fmt); in snprintf()
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dmpprint.c381 va_start(ap, fmt); in mp_printf()
396 print->print_strn(print->data, fmt, f - fmt); in mp_vprintf()
407 ++fmt; in mp_vprintf()
427 ++fmt; in mp_vprintf()
432 for (; '0' <= *fmt && *fmt <= '9'; ++fmt) { in mp_vprintf()
439 ++fmt; in mp_vprintf()
441 ++fmt; in mp_vprintf()
445 for (; '0' <= *fmt && *fmt <= '9'; ++fmt) { in mp_vprintf()
460 ++fmt; in mp_vprintf()
560 ++fmt; in mp_vprintf()
[all …]
A Dmodstruct.c56 char t = **fmt; in get_fmt_type()
70 (*fmt)++; in get_fmt_type()
89 for (size = 0; *fmt; fmt++) { in calc_size_items()
91 if (unichar_isdigit(*fmt)) { in calc_size_items()
95 if (*fmt == 's') { in calc_size_items()
116 calc_size_items(fmt, &size); in struct_calcsize()
162 if (*fmt == 's') { in struct_unpack_from()
172 fmt++; in struct_unpack_from()
187 if (*fmt == '\0') { in struct_pack_into_internal()
195 if (*fmt == 's') { in struct_pack_into_internal()
[all …]
/AliOS-Things-master/components/csi/csi1/include/
A Dsyslog.h64 #define LOG_F(fmt, args...) printf(fmt,##args) argument
68 #define LOG_D(fmt, args...) \ argument
69 do {printf(PFORMAT_D,LOG_D_BASE_ARGS); printf(fmt,##args);} while(0)
71 #define LOG_D(fmt, args...) argument
76 #define LOG_I(fmt, args...) \ argument
79 #define LOG_I(fmt, args...) argument
84 #define LOG_W(fmt, args...) \ argument
85 do {printf(PFORMAT_W,LOG_W_BASE_ARGS); printf(fmt,##args);} while(0)
87 #define LOG_W(fmt, args...) argument
92 #define LOG_E(fmt, args...) \ argument
[all …]
/AliOS-Things-master/components/csi/csi2/include/
A Dsyslog.h64 #define LOG_F(fmt, args...) printf(fmt,##args) argument
68 #define LOG_D(fmt, args...) \ argument
69 do {printf(PFORMAT_D,LOG_D_BASE_ARGS); printf(fmt,##args);} while(0)
71 #define LOG_D(fmt, args...) argument
76 #define LOG_I(fmt, args...) \ argument
79 #define LOG_I(fmt, args...) argument
84 #define LOG_W(fmt, args...) \ argument
85 do {printf(PFORMAT_W,LOG_W_BASE_ARGS); printf(fmt,##args);} while(0)
87 #define LOG_W(fmt, args...) argument
92 #define LOG_E(fmt, args...) \ argument
[all …]
/AliOS-Things-master/components/minilibc/include/
A Dsyslog.h65 #define LOG_F(fmt, args...) printf(fmt,##args) argument
69 #define LOG_D(fmt, args...) \ argument
70 do {printf(PFORMAT_D,LOG_D_BASE_ARGS); printf(fmt,##args);} while(0)
72 #define LOG_D(fmt, args...) argument
77 #define LOG_I(fmt, args...) \ argument
80 #define LOG_I(fmt, args...) argument
85 #define LOG_W(fmt, args...) \ argument
86 do {printf(PFORMAT_W,LOG_W_BASE_ARGS); printf(fmt,##args);} while(0)
88 #define LOG_W(fmt, args...) argument
93 #define LOG_E(fmt, args...) \ argument
[all …]
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/core/include/
A DHaasLog.h51 #define LOG_D(fmt, args...) \ argument
52 …do {printf("%s:%d", __FUNCTION__, __LINE__); printf("\n\r");printf(fmt,##args);printf("\n\r");} wh…
54 #define LOG_D(fmt, args...)
58 #define LOG_I(fmt, args...) \ argument
59 …do {printf("%s:%d", __FUNCTION__, __LINE__); printf("\n\r");printf(fmt,##args);printf("\n\r");} wh…
61 #define LOG_I(fmt, args...)
65 #define LOG_W(fmt, args...) \ argument
66 …do {printf("%s:%d", __FUNCTION__, __LINE__); printf("\n\r");printf(fmt,##args);printf("\n\r");} wh…
68 #define LOG_W(fmt, args...)
72 #define LOG_E(fmt, args...) \ argument
[all …]
/AliOS-Things-master/components/amp_adapter/include/
A Daos_system.h17 #define amp_debug(mod, fmt, ...) LOGD(mod, fmt, ##__VA_ARGS__) argument
18 #define amp_info(mod, fmt, ...) LOGI(mod, fmt, ##__VA_ARGS__) argument
19 #define amp_warn(mod, fmt, ...) LOGW(mod, fmt, ##__VA_ARGS__) argument
20 #define amp_error(mod, fmt, ...) LOGE(mod, fmt, ##__VA_ARGS__) argument
21 #define amp_fatal(mod, fmt, ...) LOGF(mod, fmt, ##__VA_ARGS__) argument
35 void aos_printf(const char *fmt, ...);
42 int aos_snprintf(char *str, const int len, const char *fmt, ...);
/AliOS-Things-master/components/ble_host/bt_host/port/include/misc/
A D__assert.h77 #define __ASSERT_PRINT(fmt, ...) printk(fmt, ##__VA_ARGS__) argument
79 #define __ASSERT_PRINT(fmt, ...) argument
83 #define __ASSERT_MSG_INFO(fmt, ...) argument
85 #define __ASSERT_MSG_INFO(fmt, ...) __ASSERT_PRINT("\t" fmt "\n", ##__VA_ARGS__) argument
148 __ASSERT_MSG_INFO(fmt, ##__VA_ARGS__); \
153 #define __ASSERT_EVAL(expr1, expr2, test, fmt, ...) \ argument
156 __ASSERT(test, fmt, ##__VA_ARGS__); \
163 #define __ASSERT(test, fmt, ...) { } argument
164 #define __ASSERT_EVAL(expr1, expr2, test, fmt, ...) expr1 argument
168 #define __ASSERT(test, fmt, ...) { } argument
[all …]
A Dprintk.h51 extern __printf_like(1, 2) int printk(const char *fmt, ...);
52 extern __printf_like(1, 0) int vprintk(const char *fmt, va_list ap);
54 const char *fmt, ...);
56 const char *fmt, va_list ap);
59 const char *fmt, va_list ap);
61 static inline int printk(const char *fmt, ...)
63 ARG_UNUSED(fmt);
67 static inline int vprintk(const char *fmt, va_list ap)
69 ARG_UNUSED(fmt);
77 const char *fmt, va_list ap)
[all …]
/AliOS-Things-master/components/genie_service/genie_port/
A Dgenie_port.h17 #define BT_DBG_R(fmt, ...) \ argument
19 LOGV("GENIE",F_RED "[%s]" fmt F_END, __func__, \
33 #define BT_DBG_R(fmt, ...) argument
64 #define BT_INFO_R(fmt, ...) SYS_LOG_DBG(F_RED fmt F_END, ##__VA_ARGS__); argument
65 #define BT_INFO_G(fmt, ...) SYS_LOG_DBG(F_GREEN fmt F_END, ##__VA_ARGS__); argument
66 #define BT_INFO_B(fmt, ...) SYS_LOG_DBG(F_BLUE fmt F_END, ##__VA_ARGS__); argument
72 #define BT_INFO_R(fmt, ...) argument
73 #define BT_INFO_G(fmt, ...) argument
74 #define BT_INFO_B(fmt, ...) argument
/AliOS-Things-master/components/debug/include/aos/
A Ddebug.h27 void aos_debug_backtrace_now(int32_t (*print_func)(const char *fmt, ...));
37 void aos_debug_backtrace_task(char *taskname, int32_t (*print_func)(const char *fmt, ...));
46 void aos_debug_mm_overview(int32_t (*print_func)(const char *fmt, ...));
55 void aos_debug_task_overview(int32_t (*print_func)(const char *fmt, ...));
64 void aos_debug_buf_queue_overview(int32_t (*print_func)(const char *fmt, ...));
73 void aos_debug_queue_overview(int32_t (*print_func)(const char *fmt, ...));
82 void aos_debug_sem_overview(int32_t (*print_func)(const char *fmt, ...));
91 void aos_debug_mutex_overview(int32_t (*print_func)(const char *fmt, ...));
100 void aos_debug_overview(int32_t (*print_func)(const char *fmt, ...));
149 int32_t aos_debug_printf(const char *fmt, ...);

Completed in 79 milliseconds

1234567891011