improved error output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16919 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ static void dump_geom(int dev, bool bios)
|
|||||||
device_geometry geom;
|
device_geometry geom;
|
||||||
|
|
||||||
if (ioctl(dev, bios?B_GET_BIOS_GEOMETRY:B_GET_GEOMETRY, &geom, sizeof(geom)) < 0) {
|
if (ioctl(dev, bios?B_GET_BIOS_GEOMETRY:B_GET_GEOMETRY, &geom, sizeof(geom)) < 0) {
|
||||||
perror("ioctl(B_GET_(BIOS_)GEOMETRY)");
|
perror(bios ? "ioctl(B_GET_BIOS_GEOMETRY)" : "ioctl(B_GET_GEOMETRY)");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
printf("%sgeometry:\n", bios?"bios ":"");
|
printf("%sgeometry:\n", bios?"bios ":"");
|
||||||
|
|||||||
Reference in New Issue
Block a user