Skip to content

Commit b94d92d

Browse files
Add debug in Debug and MappedRegion
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent 524f81d commit b94d92d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ enum State {
287287
Aborted,
288288
}
289289

290+
#[derive(Debug)]
290291
pub struct Camera {
291292
fd: RawFd,
292293
state: State,

src/v4l2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ pub fn xioctl_valid<T>(fd: RawFd, request: usize, arg: &mut T) -> io::Result<boo
9595
}
9696
}
9797

98+
#[derive(Debug)]
9899
pub struct MappedRegion {
99100
pub ptr: *mut u8,
100101
pub len: usize,

0 commit comments

Comments
 (0)