Skip to content

Commit

Permalink
Couple minor Windows block fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaypipes committed Mar 22, 2020
1 parent e532803 commit e193f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion block.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (p *Partition) String() string {
sizeStr = fmt.Sprintf("%d%s", size, unitStr)
}
return fmt.Sprintf(
"/dev/%s (%s) %s%s",
"%s (%s) %s%s",
p.Name,
sizeStr,
typeStr,
Expand Down
1 change: 1 addition & 0 deletions block_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (ctx *context) blockFillInfo(info *BlockInfo) error {
StorageController: toStorageController(diskdrive.InterfaceType),
BusType: toBusType(diskdrive.InterfaceType),
BusPath: UNKNOWN, // TODO: add information
NUMANodeID: -1,
Vendor: strings.TrimSpace(diskdrive.Manufacturer),
Model: strings.TrimSpace(diskdrive.Caption),
SerialNumber: strings.TrimSpace(diskdrive.SerialNumber),
Expand Down

0 comments on commit e193f94

Please sign in to comment.