Skip to content

Commit

Permalink
Add IORING_OP_MKDIRAT to fmt::Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasdezeeuw committed Jan 13, 2024
1 parent 0006f76 commit c81c37f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,12 @@ impl fmt::Debug for Submission {
&self.inner.__bindgen_anon_3.unlink_flags
});
}
libc::IORING_OP_MKDIRAT => {
f.field("opcode", &"IORING_OP_MKDIRAT")
.field("dirfd", &self.inner.fd)
.field("path", unsafe { &self.inner.__bindgen_anon_2.addr })
.field("mode", &self.inner.len);
}
libc::IORING_OP_POLL_ADD => {
f.field("opcode", &"IORING_OP_POLL_ADD")
.field("fd", &self.inner.fd)
Expand Down

0 comments on commit c81c37f

Please sign in to comment.