mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 10:15:03 +00:00
fmt
This commit is contained in:
parent
5644e716e1
commit
b361310953
@ -31,9 +31,3 @@ DragonOS是一个开源项目,我们欢迎任何形式的赞助和捐赠,您
|
||||
-------------------------
|
||||
|
||||
DragonOS社区的捐赠信息将按年进行公开。赞助商、赞助者信息将在收到赞助后,15天内进行公开。
|
||||
|
||||
社区管理、财务及法务主体
|
||||
-------------------------
|
||||
|
||||
灵高是DragonOS社区为满足相关监管合规要求,成立的 **非营利性质** 的单位。详情请见:https://ringotek.com.cn
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
use core::{default, sync::atomic::AtomicU8};
|
||||
#![allow(dead_code)]
|
||||
use core::sync::atomic::AtomicU8;
|
||||
|
||||
use system_error::SystemError;
|
||||
|
||||
|
@ -122,11 +122,6 @@ impl BoundUdp {
|
||||
})
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_recv(&self) -> bool {
|
||||
self.with_socket(|socket| socket.can_recv())
|
||||
}
|
||||
|
||||
pub fn try_send(
|
||||
&self,
|
||||
buf: &[u8],
|
||||
|
@ -132,7 +132,7 @@ impl Init {
|
||||
} else {
|
||||
smoltcp::wire::IpListenEndpoint::from(local)
|
||||
};
|
||||
log::debug!("listen at {:?}", listen_addr);
|
||||
// log::debug!("listen at {:?}", listen_addr);
|
||||
let mut inners = Vec::new();
|
||||
if let Err(err) = || -> Result<(), SystemError> {
|
||||
for _ in 0..(backlog - 1) {
|
||||
|
@ -30,6 +30,7 @@ impl IndexNode for Inode {
|
||||
data: crate::libs::spinlock::SpinLockGuard<crate::filesystem::vfs::FilePrivateData>,
|
||||
) -> Result<usize, SystemError> {
|
||||
drop(data);
|
||||
defer::defer!(log::debug!("write end."));
|
||||
self.inner.write(buf)
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![allow(unused)]
|
||||
use core::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
use log::debug;
|
||||
|
Loading…
x
Reference in New Issue
Block a user