summaryrefslogtreecommitdiffstats
path: root/src/win32.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:49:36 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-04-12 11:49:36 +0200
commit480320fe82922296d6c181ddcc95fbf5cf566330 (patch)
treebe77470b892dd3fae623c9f677e7f752a860e283 /src/win32.c
parent062da3696d295e903d2e3e97d225c6794653b597 (diff)
Cylinder is now long unsigned int. Fix a parameter inversion for the DOS version.
Diffstat (limited to 'src/win32.c')
-rw-r--r--src/win32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win32.c b/src/win32.c
index d2a3b0c..6c1c109 100644
--- a/src/win32.c
+++ b/src/win32.c
@@ -150,7 +150,7 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
if(geom->sectors_per_head!=0)
{
if(verbose>1)
- log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY_EX %s Ok (%u, %u, %u)\n",
+ log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY_EX %s Ok (%lu, %u, %u)\n",
device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
}
@@ -168,7 +168,7 @@ void disk_get_geometry_win32(CHSgeometry_t *geom, HANDLE handle, const char *dev
if(geom->sectors_per_head!=0)
{
if(verbose>1)
- log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY %s Ok (%u, %u, %u)\n",
+ log_verbose("IOCTL_DISK_GET_DRIVE_GEOMETRY %s Ok (%lu, %u, %u)\n",
device, geom->cylinders, geom->heads_per_cylinder, geom->sectors_per_head);
return ;
}
@@ -346,12 +346,12 @@ static const char *file_win32_description(disk_t *disk_car)
struct info_file_win32_struct *data=disk_car->data;
char buffer_disk_size[100];
if(disk_car->device[0]=='\\' && disk_car->device[1]=='\\' && disk_car->device[2]=='.' && disk_car->device[3]=='\\' && disk_car->device[5]==':')
- snprintf(disk_car->description_txt, sizeof(disk_car->description_txt),"Drive %c: - %s - CHS %u %u %u%s",
+ snprintf(disk_car->description_txt, sizeof(disk_car->description_txt),"Drive %c: - %s - CHS %lu %u %u%s",
disk_car->device[4], size_to_unit(disk_car->disk_size,buffer_disk_size),
disk_car->geom.cylinders, disk_car->geom.heads_per_cylinder, disk_car->geom.sectors_per_head,
((data->mode&FILE_WRITE_DATA)==FILE_WRITE_DATA?"":" (RO)"));
else
- snprintf(disk_car->description_txt, sizeof(disk_car->description_txt),"Disk %s - %s - CHS %u %u %u%s",
+ snprintf(disk_car->description_txt, sizeof(disk_car->description_txt),"Disk %s - %s - CHS %lu %u %u%s",
disk_car->device, size_to_unit(disk_car->disk_size,buffer_disk_size),
disk_car->geom.cylinders, disk_car->geom.heads_per_cylinder, disk_car->geom.sectors_per_head,
((data->mode&FILE_WRITE_DATA)==FILE_WRITE_DATA?"":" (RO)"));