Home
last modified time | relevance | path

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

12

/DragonOS-0.1.8/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 …]
Dlazy_init.rs20 use core::fmt::Debug;
137 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { in fmt() method
Dprintk.rs9 fmt::{self, Write},
55 …$crate::libs::printk::PrintkWriter.__write_string_color($FRcolor, $BKcolor, alloc::fmt::format(for…
106 pub fn __write_fmt(&mut self, args: fmt::Arguments) { in __write_fmt()
213 impl fmt::Write for PrintkWriter {
214 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
221 pub fn __printk(args: fmt::Arguments) { in __printk()
222 use fmt::Write; in __printk()
Dalign.rs4 use core::{alloc::GlobalAlloc, fmt::Debug, ptr::Unique};
63 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
Drbtree.rs16 use core::fmt::{self, Debug};
55 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function
371 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() function
489 impl<'a, K: Ord + Debug, V> fmt::Debug for Keys<'a, K, V> {
490 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
534 impl<'a, K: Ord + Debug, V: Debug> fmt::Debug for Values<'a, K, V> {
535 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
582 impl<'a, K: Ord + Debug, V: Debug> fmt::Debug for ValuesMut<'a, K, V> {
583 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/DragonOS-0.1.8/user/libs/libc/src/
Dprintf.c41 int printf(const char *fmt, ...) in printf() argument
46 va_start(args, fmt); in printf()
48 count = vsprintf(buf, fmt, args); in printf()
55 int sprintf(char *buf, const char *fmt, ...) in sprintf() argument
60 va_start(args, fmt); in sprintf()
61 count = vsprintf(buf, fmt, args); in sprintf()
74 int vsprintf(char *buf, const char *fmt, va_list args) in vsprintf() argument
90 for (; *fmt; ++fmt) in vsprintf()
93 if (*fmt != '%') in vsprintf()
95 *str = *fmt; in vsprintf()
[all …]
/DragonOS-0.1.8/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.8/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.8/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.8/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 &emsp;&emsp;请在提交代码之前,使用`cargo fmt`命令对代码进行格式化。
/DragonOS-0.1.8/kernel/src/time/
Dmod.rs1 use core::{fmt, ops};
143 impl fmt::Display for Instant {
144 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
239 impl fmt::Display for Duration {
240 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/DragonOS-0.1.8/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.8/kernel/src/net/
Dmod.rs2 fmt::{self, Debug},
227 impl fmt::Display for Protocol {
228 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs3 fmt::Debug,
61 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
74 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/driver/
Dmod.rs13 use core::fmt::Debug;
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal_types.rs5 use core::fmt::Debug;
71 impl core::fmt::Debug for sigaction__union_u {
72 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
212 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/mm/
Dmod.rs11 fmt::Debug,
118 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
306 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
Dpage.rs2 fmt::{self, Debug, Error, Formatter},
174 fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error> { in fmt() method
450 impl<Arch: MemoryManagementArch> fmt::Debug for PageFlags<Arch> {
451 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
796 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs19 fmt::{self, Debug, Display, Formatter},
65 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
253 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
608 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
1196 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
1292 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
1346 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dtransport_pci.rs12 fmt::{self, Display, Formatter},
410 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
444 Self::Pci(pci_error) => pci_error.fmt(f), in fmt()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahcidisk.rs21 use core::fmt::Debug;
42 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.8/kernel/src/driver/base/device/
Ddriver.rs4 use core::fmt::Debug;
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs32 use core::fmt::{Debug, Write};
65 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { in fmt() method

12