diff --git a/sled-hardware/src/illumos/partitions.rs b/sled-hardware/src/illumos/partitions.rs index de62e25cfe..29b2466ad9 100644 --- a/sled-hardware/src/illumos/partitions.rs +++ b/sled-hardware/src/illumos/partitions.rs @@ -46,9 +46,8 @@ fn parse_partition_types( return Err(PooledDiskError::BadPartitionLayout { path: path.to_path_buf(), why: format!( - "Expected {} partitions, only saw {}", + "Expected {N} partitions, only saw {}", partitions.len(), - N ), }); }