summaryrefslogtreecommitdiffstats
path: root/src/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/win32.c b/src/win32.c
index 3fd3c03..cc4b10c 100644
--- a/src/win32.c
+++ b/src/win32.c
@@ -155,7 +155,12 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
geom->heads_per_cylinder=geometry_ex.Geometry.TracksPerCylinder;
geom->sectors_per_head= geometry_ex.Geometry.SectorsPerTrack;
if(geom->sectors_per_head!=0)
+ {
+ if(verbose>1)
+ log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY_EX %s Ok (%u, %u, %u)\n",
+ device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
+ }
}
}
{
@@ -168,7 +173,12 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
geom->heads_per_cylinder=geometry.TracksPerCylinder;
geom->sectors_per_head= geometry.SectorsPerTrack;
if(geom->sectors_per_head!=0)
+ {
+ if(verbose>1)
+ log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY %s Ok (%u, %u, %u)\n",
+ device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
+ }
}
}
geom->cylinders=0;