Skip to content

Commit

Permalink
Fix backwards counts in bad partition layout log message (#5129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallagher authored Feb 23, 2024
1 parent 65ebf72 commit a07cae6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sled-hardware/src/illumos/partitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ fn parse_partition_types<const N: usize>(
return Err(PooledDiskError::BadPartitionLayout {
path: path.to_path_buf(),
why: format!(
"Expected {} partitions, only saw {}",
"Expected {N} partitions, only saw {}",
partitions.len(),
N
),
});
}
Expand Down

0 comments on commit a07cae6

Please sign in to comment.