[FILESYSTEMS]: Fix printf-like counted string specifiers.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 20 Jun 2017 00:45:07 +0000 (00:45 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 20 Jun 2017 00:45:07 +0000 (00:45 +0000)
svn path=/trunk/; revision=75147

reactos/drivers/filesystems/cdfs/volinfo.c
reactos/drivers/filesystems/fastfat/volume.c
reactos/drivers/filesystems/ntfs/volinfo.c

index 2356ffe..8666064 100644 (file)
@@ -49,7 +49,7 @@ CdfsGetFsVolumeInformation(
 
     DPRINT("Required length %lu\n", (sizeof(FILE_FS_VOLUME_INFORMATION) + DeviceObject->Vpb->VolumeLabelLength));
     DPRINT("LabelLength %hu\n", DeviceObject->Vpb->VolumeLabelLength);
-    DPRINT("Label %*.S\n", DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
+    DPRINT("Label %.*S\n", DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
 
     if (*BufferLength < sizeof(FILE_FS_VOLUME_INFORMATION))
         return STATUS_INFO_LENGTH_MISMATCH;
index 8f5871b..7222b9b 100644 (file)
@@ -32,7 +32,7 @@ FsdGetFsVolumeInformation(
 
     DPRINT("Required length %lu\n", FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION, VolumeLabel) + DeviceObject->Vpb->VolumeLabelLength);
     DPRINT("LabelLength %hu\n", DeviceObject->Vpb->VolumeLabelLength);
-    DPRINT("Label %*.S\n", DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
+    DPRINT("Label %.*S\n", DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR), DeviceObject->Vpb->VolumeLabel);
 
     ASSERT(*BufferLength >= sizeof(FILE_FS_VOLUME_INFORMATION));
     *BufferLength -= FIELD_OFFSET(FILE_FS_VOLUME_INFORMATION, VolumeLabel);
index 023e9af..ddf7f6c 100644 (file)
@@ -115,7 +115,7 @@ NtfsGetFsVolumeInformation(PDEVICE_OBJECT DeviceObject,
            sizeof(FILE_FS_VOLUME_INFORMATION) + DeviceObject->Vpb->VolumeLabelLength);
     DPRINT("LabelLength %hu\n",
            DeviceObject->Vpb->VolumeLabelLength);
-    DPRINT("Label %*.S\n",
+    DPRINT("Label %.*S\n",
            DeviceObject->Vpb->VolumeLabelLength / sizeof(WCHAR),
            DeviceObject->Vpb->VolumeLabel);