Skip to content

Commit 8ed53dc

Browse files
committed
Use spans and clean up tracing events
1 parent d149b6b commit 8ed53dc

File tree

6 files changed

+340
-278
lines changed

6 files changed

+340
-278
lines changed

vm/devices/vmbus/vmbus_core/src/protocol.rs

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use hvdef::Vtl;
77
use inspect::Inspect;
88
use mesh::payload::Protobuf;
99
use open_enum::open_enum;
10+
use std::fmt::Display;
1011
use std::mem::size_of;
1112
use std::ops::BitAnd;
1213
use std::ops::BitAndAssign;
@@ -228,6 +229,12 @@ impl BitOr for FeatureFlags {
228229
#[mesh(package = "vmbus")]
229230
pub struct GpadlId(pub u32);
230231

232+
impl Display for GpadlId {
233+
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
234+
write!(f, "{}", self.0)
235+
}
236+
}
237+
231238
#[repr(transparent)]
232239
#[derive(
233240
Copy,

0 commit comments

Comments
 (0)