[FFS] Silence some only-informative KdPrints.

This commit is contained in:
Hermès Bélusca-Maïto 2019-08-16 18:14:19 +02:00
parent fce898063e
commit 4016225269
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -159,13 +159,13 @@ FFSLoadDiskLabel(
if (Disklabel->d_magic == DISKMAGIC) if (Disklabel->d_magic == DISKMAGIC)
{ {
KdPrint(("FFSLoadDiskLabel() Disklabel magic ok\n")); FFSPrint((DBG_INFO, "FFSLoadDiskLabel() Disklabel magic ok\n"));
Status = STATUS_SUCCESS; Status = STATUS_SUCCESS;
} }
else else
{ {
KdPrint(("FFSLoadDiskLabel() No BSD disklabel found, trying to find BSD file system on \"normal\" partition.\n")); FFSPrint((DBG_INFO, "FFSLoadDiskLabel() No BSD disklabel found, trying to find BSD file system on \"normal\" partition.\n"));
if ((FFSSb = FFSLoadSuper(Vcb, FALSE, FSOffset + SBLOCK_UFS1)) && if ((FFSSb = FFSLoadSuper(Vcb, FALSE, FSOffset + SBLOCK_UFS1)) &&
(FFSSb->fs_magic == FS_UFS1_MAGIC)) (FFSSb->fs_magic == FS_UFS1_MAGIC))
@ -213,7 +213,7 @@ FFSLoadDiskLabel(
} }
else else
{ {
KdPrint(("FFSLoadDiskLabel() No BSD file system was found on the \"normal\" partition.\n")); FFSPrint((DBG_INFO, "FFSLoadDiskLabel() No BSD file system was found on the \"normal\" partition.\n"));
#ifdef __REACTOS__ #ifdef __REACTOS__
ExFreePoolWithTag(Disklabel, FFS_POOL_TAG); ExFreePoolWithTag(Disklabel, FFS_POOL_TAG);
#endif #endif
@ -225,7 +225,7 @@ FFSLoadDiskLabel(
Status = FFSGetPartition(DeviceObject, &StartOffset); Status = FFSGetPartition(DeviceObject, &StartOffset);
if (!NT_SUCCESS(Status)) if (!NT_SUCCESS(Status))
{ {
KdPrint(("FFSLoadDiskLabel() Slice info failed, Status %u\n", Status)); FFSPrint((DBG_ERROR, "FFSLoadDiskLabel() Slice info failed, Status %u\n", Status));
#ifdef __REACTOS__ #ifdef __REACTOS__
ExFreePoolWithTag(Disklabel, FFS_POOL_TAG); ExFreePoolWithTag(Disklabel, FFS_POOL_TAG);
#endif #endif
@ -234,7 +234,7 @@ FFSLoadDiskLabel(
Vcb->PartitionNumber = FFSGlobal->PartitionNumber; Vcb->PartitionNumber = FFSGlobal->PartitionNumber;
KdPrint(("FFSLoadDiskLabel() Selected BSD Label : %d, StartOffset : %x\n", Vcb->PartitionNumber, StartOffset)); FFSPrint((DBG_INFO, "FFSLoadDiskLabel() Selected BSD Label : %d, StartOffset : %x\n", Vcb->PartitionNumber, StartOffset));
for (i = 0; i < MAXPARTITIONS; i++) for (i = 0; i < MAXPARTITIONS; i++)
{ {
@ -247,7 +247,7 @@ FFSLoadDiskLabel(
Vcb->FSOffset[i] = FSOffset; Vcb->FSOffset[i] = FSOffset;
/* Important */ /* Important */
KdPrint(("FFSLoadDiskLabel() Label %d, FS_BSDFFS, %x\n", i, Vcb->FSOffset[i])); FFSPrint((DBG_INFO, "FFSLoadDiskLabel() Label %d, FS_BSDFFS, %x\n", i, Vcb->FSOffset[i]));
if ((FFSSb = FFSLoadSuper(Vcb, FALSE, FSOffset + SBLOCK_UFS1)) && if ((FFSSb = FFSLoadSuper(Vcb, FALSE, FSOffset + SBLOCK_UFS1)) &&
(FFSSb->fs_magic == FS_UFS1_MAGIC)) (FFSSb->fs_magic == FS_UFS1_MAGIC))