Now prints "<unknown>" as the name of unrecognized file/partitioning systems.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12852 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b674940baa
commit
96cfeb706a
@ -206,13 +206,16 @@ struct PrintPartitionsVisitor : public BDiskDeviceVisitor {
|
||||
name = "";
|
||||
}
|
||||
}
|
||||
const char *type = partition->ContentType();
|
||||
if (type == NULL)
|
||||
type = "<unknown>";
|
||||
|
||||
BPath path;
|
||||
if (partition->IsMounted())
|
||||
partition->GetMountPoint(&path);
|
||||
|
||||
printf("%-16s %-20s %s\n",
|
||||
name, partition->ContentType(), partition->IsMounted() ? path.Path() : "");
|
||||
name, type, partition->IsMounted() ? path.Path() : "");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user