Home
last modified time | relevance | path

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

1234

/DragonOS-0.1.9/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 …]
Dlock_free_flags.rs1 use core::{cell::UnsafeCell, fmt::Debug};
45 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
Dprintk.rs2 fmt::{self, Write},
82 pub fn __write_fmt(&mut self, args: fmt::Arguments) { in __write_fmt()
107 impl fmt::Write for PrintkWriter {
108 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
115 pub fn __printk(args: fmt::Arguments) { in __printk()
122 pub fn log(&self, log_level: usize, message: fmt::Arguments) { in log()
Dlazy_init.rs20 use core::fmt::Debug;
137 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result { in fmt() method
Dcpumask.rs110 impl core::fmt::Debug for CpuMask {
111 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
Donce.rs2 fmt::{self, Debug, Formatter},
134 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { in fmt() method
Dalign.rs4 use core::{alloc::GlobalAlloc, fmt::Debug, ptr::Unique};
71 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/
Dguid.rs1 use core::{fmt, mem};
45 impl fmt::Debug for DragonStubPayloadEFI {
46 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
Dfdt.rs3 use core::fmt::Debug;
28 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.9/build-scripts/
DMakefile1 .PHONY: fmt
2 fmt: target
3 cargo fmt --all $(FMT_CHECK)
/DragonOS-0.1.9/tools/
DMakefile1 .PHONY: fmt
2 fmt: target
3 @cargo fmt --all $(FMT_CHECK)
/DragonOS-0.1.9/tools/debugging/logmonitor/src/backend/
Derror.rs1 use std::{error::Error, fmt::Display};
24 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() method
/DragonOS-0.1.9/kernel/src/common/
Dprintk.h45 int vsprintf(char *buf, const char *fmt, va_list args);
56 int vsnprintf(char *buf, const char *fmt, int buf_size, va_list args);
68 int printk_color(unsigned int FRcolor, unsigned int BKcolor, const char *fmt, ...);
78 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.9/user/apps/
DMakefile9 .PHONY: fmt
10 fmt: target
12 FMT_CHECK=$(FMT_CHECK) $(MAKE) -C $$subdir fmt;\
/DragonOS-0.1.9/user/apps/clear/
DMakefile36 fmt: target
37 RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) fmt
39 fmt-check:
40 RUSTFLAGS=$(RUSTFLAGS) cargo $(TOOLCHAIN) fmt --check
/DragonOS-0.1.9/kernel/src/net/
Dmod.rs2 fmt::{self, Debug},
84 impl fmt::Display for Protocol {
85 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/DragonOS-0.1.9/kernel/
DMakefile26 .PHONY: fmt
27 fmt: target
28 cargo fmt --all $(FMT_CHECK)
/DragonOS-0.1.9/kernel/crates/klog_types/src/
Dlib.rs7 use core::{fmt::Debug, mem::size_of_val};
145 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
201 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.9/kernel/src/exception/
Dmsi.rs1 use core::{any::Any, fmt::Debug};
21 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() method
/DragonOS-0.1.9/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);
/DragonOS-0.1.9/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.9/kernel/src/time/
Dmod.rs2 fmt,
194 impl fmt::Display for Instant {
195 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
290 impl fmt::Display for Duration {
291 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/DragonOS-0.1.9/user/
DMakefile78 .PHONY: fmt
79 fmt: target
80 FMT_CHECK=$(FMT_CHECK) $(MAKE) -C apps fmt
/DragonOS-0.1.9/
DMakefile146 fmt: target
148 FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C kernel
149 FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C user
150 FMT_CHECK=$(FMT_CHECK) $(MAKE) fmt -C build-scripts

1234