Skip to content

Commit 0a28db9

Browse files
file_table::log: print the full path
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent b3d9986 commit 0a28db9

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/aero_kernel/src/arch/x86_64/interrupts/handlers.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ interrupt_handler_%1:
6868
; call the generic interrupt handler
6969
call generic_interrupt_handler
7070

71-
; pop the error code and interrupt number
71+
; pop the error code
7272
add rsp, 8
7373

7474
; pop the preserved registers

src/aero_kernel/src/fs/file_table.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ use alloc::vec::Vec;
2727

2828
use spin::{Mutex, RwLock};
2929

30+
use crate::fs::cache::DirCacheImpl;
31+
3032
use super::cache::{DirCacheItem, INodeCacheItem};
3133
use super::inode::FileType;
3234
use super::FileSystemError;
@@ -205,9 +207,9 @@ impl FileTable {
205207
for handle in files.iter() {
206208
if let Some(handle) = handle {
207209
log::debug!(
208-
"file handle: (fd={}, name={})",
210+
"file handle: (fd={}, path=`{}`)",
209211
handle.fd,
210-
handle.inode.name()
212+
handle.inode.absolute_path_str()
211213
)
212214
}
213215
}

0 commit comments

Comments
 (0)