summaryrefslogtreecommitdiffstats
path: root/src/win32.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-08-28 00:01:16 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-08-28 00:01:16 +0200
commitb04cfd531a9a49e5586a2d54f26a8b594b996c81 (patch)
tree6ccaed2016a89da427e01f9ba947f2659a68519b /src/win32.c
parentd5d0a9a74f20ab8288f81ec96be48636dd6e0686 (diff)
win32: add debug code in disk_get_sector_size_win32
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;