Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/
Dprintk.c54 static int __do_vsprintf(char *buf, const char *fmt, int buf_size, va_list args) in __do_vsprintf() argument
75 for (; *fmt; ++fmt) in __do_vsprintf()
78 if (*fmt != '%') in __do_vsprintf()
80 *str = *fmt; in __do_vsprintf()
93 ++fmt; in __do_vsprintf()
96 switch (*fmt) in __do_vsprintf()
107 ++fmt; in __do_vsprintf()
112 ++fmt; in __do_vsprintf()
116 ++fmt; in __do_vsprintf()
121 ++fmt; in __do_vsprintf()
[all …]
Dprintk.rs5 use core::fmt;
48 …$crate::libs::printk::PrintkWriter.__write_string_color($FRcolor, $BKcolor, alloc::fmt::format(for…
55 …$crate::libs::printk::PrintkWriter.__write_string((alloc::fmt::format(format_args!("[ DEBUG ] ({}:…
56 … alloc::fmt::format(format_args!($($arg)*)).as_str() + "\n").as_str())
63 …ntkWriter.__write_string((alloc::string::String::from("[ INFO ] ")+ alloc::fmt::format(format_args…
71 …$crate::libs::printk::PrintkWriter.__write_string((alloc::fmt::format(format_args!($($arg)*)) + "\…
79 …$crate::libs::printk::PrintkWriter.__write_string((alloc::fmt::format(format_args!("({}:{})\t", fi…
80 … alloc::fmt::format(format_args!($($arg)*)).as_str() + "\n").as_str())
88 …$crate::libs::printk::PrintkWriter.__write_string((alloc::fmt::format(format_args!("({}:{})\t", fi…
89 … alloc::fmt::format(format_args!($($arg)*)).as_str() + "\n").as_str())
[all …]
Dlockref.rs7 use core::{fmt::Debug, intrinsics::size_of};
/DragonOS-0.1.5/user/libs/libc/src/
Dprintf.c40 int printf(const char *fmt, ...) in printf() argument
45 va_start(args, fmt); in printf()
47 count = vsprintf(buf, fmt, args); in printf()
53 int sprintf(char *buf, const char *fmt, ...) in sprintf() argument
58 va_start(args, fmt); in sprintf()
59 count = vsprintf(buf, fmt, args); in sprintf()
72 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
88 for (; *fmt; ++fmt) in vsprintf()
91 if (*fmt != '%') in vsprintf()
93 *str = *fmt; in vsprintf()
[all …]
/DragonOS-0.1.5/kernel/src/common/
Dprintk.h50 int vsprintf(char *buf, const char *fmt, va_list args);
61 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args);
73 int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char *fmt, ...);
83 int sprintk(char *buf, const char *fmt, ...);
Dstdio.h11 extern int vsprintf(char *buf, const char *fmt, va_list args);
13 extern int sprintk(char *buf, const char *fmt, ...);
/DragonOS-0.1.5/user/libs/libc/src/include/export/
Dstdio.h49 int printf(const char *fmt, ...);
50 int sprintf(char *buf, const char *fmt, ...);
51 int vsprintf(char *buf, const char *fmt, va_list args);
/DragonOS-0.1.5/docs/userland/libc/apis/api-list/
Dstdio.md12 ``int printf(const char *fmt, ...)``
16 ``int sprintf(char *buf,const char *fmt,...)```
20 ``int vsprintf(char *buf,const char *fmt,va_list args)``
/DragonOS-0.1.5/docs/community/code_contribution/
Dc-coding-style.md83 if (*fmt == '*')
85 ++fmt;
87 else if (is_digit(*fmt))
89 field_width = skip_and_atoi(&fmt);
Drust-coding-style.md13   请在提交代码之前,使用`cargo fmt`命令对代码进行格式化。
/DragonOS-0.1.5/kernel/src/driver/pci/
Dpci.rs9 fmt::{self, Display, Formatter},
123 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
143 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
235 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
285 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
/DragonOS-0.1.5/docs/kernel/core_api/
Dkernel_api.md575 #### `printk(const char* fmt, ...)`
583 **fmt**
591 #### `printk_color(unsigned int FRcolor, unsigned int BKcolor, const char* fmt, ...)`
607 **fmt**
615 #### `int vsprintf(char *buf, const char *fmt, va_list args)`
619 &emsp;&emsp;按照fmt格式化字符串,并将结果输出到buf中,返回写入buf的字符数量。
627 **fmt**
635 #### `int sprintk(char *buf, const char *fmt, ...)` argument
639 &emsp;&emsp;按照fmt格式化字符串,并将结果输出到buf中,返回写入buf的字符数量。
647 **fmt**
/DragonOS-0.1.5/kernel/src/ipc/
Dsignal_types.rs5 use core::fmt::Debug;
70 impl core::fmt::Debug for sigaction__union_u {
71 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
211 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.5/kernel/src/driver/virtio/
Dtransport_pci.rs11 fmt::{self, Display, Formatter},
427 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
461 Self::Pci(pci_error) => pci_error.fmt(f), in fmt()
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/
Dahcidisk.rs20 use core::fmt::Debug;
41 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.5/docs/community/ChangeLog/V0.1.x/
DV0.1.4.md205 * cargo fmt 格式化
/DragonOS-0.1.5/kernel/src/io/
Ddevice.rs4 use core::{any::Any, fmt::Debug};
/DragonOS-0.1.5/kernel/src/filesystem/vfs/
Dmod.rs9 use ::core::{any::Any, fmt::Debug};
/DragonOS-0.1.5/kernel/src/filesystem/fat/
Dfs.rs2 use core::{any::Any, fmt::Debug};