Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pldm-file/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pldm = { workspace = true }

[dev-dependencies]
anyhow = "1.0"
chrono = { workspace = true }
chrono = { workspace = true, features = ["clock"] }
mctp-linux = { workspace = true }
pldm-platform = { workspace = true, features = ["alloc"] }
smol = "2.0"
Expand Down
3 changes: 0 additions & 3 deletions pldm-platform/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ impl GetPDRResp {
record,
};
pdr.update()?;
info!("pdr after update {pdr:#x?}");

let mut s = GetPDRResp {
next_record_handle: 0,
Expand Down Expand Up @@ -698,14 +697,12 @@ impl Length {
let mut l = Length::default();
let mut w = deku::writer::Writer::new(&mut l);
c.to_writer(&mut w, ctx)?;
info!("len {}", l.len);
Ok(l.len)
}
}

impl deku::no_std_io::Write for &mut Length {
fn write(&mut self, buf: &[u8]) -> deku::no_std_io::Result<usize> {
info!("wr {}", buf.len());
self.pos += buf.len() as i64;
self.len = self.len.max(self.pos as u64);
Ok(buf.len())
Expand Down
13 changes: 12 additions & 1 deletion pldm/src/control/responder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,18 @@ impl<const N: usize> Responder<N> {
0,
0xf1f1f000,
None,
&[Cmd::SetTID as u8, Cmd::GetTID as u8],
&[
Cmd::SetTID,
Cmd::GetTID,
Cmd::GetPLDMVersion,
Cmd::GetPLDMTypes,
Cmd::GetPLDMCommands,
Cmd::NegotiateTransferParameters,
// May be handled by PLDM subtypes
Cmd::MultipartSend,
Cmd::MultipartReceive,
]
.map(|c| c as u8),
);
let _ = r.types.push(t);
r
Expand Down