From ccb76550783e1a307b1c081a9bc90fb3cb9e79fd Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Fri, 18 Feb 2022 19:47:02 -0500 Subject: [PATCH] UDF: Reduce logging messages. No need to print things if there is no reason to suspect the storage is UDF and we do not have general tracing enabled. --- src/add-ons/kernel/file_systems/udf/Recognition.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/file_systems/udf/Recognition.cpp b/src/add-ons/kernel/file_systems/udf/Recognition.cpp index ffa5bcb8a4..c3607f7a33 100644 --- a/src/add-ons/kernel/file_systems/udf/Recognition.cpp +++ b/src/add-ons/kernel/file_systems/udf/Recognition.cpp @@ -70,7 +70,7 @@ udf_recognize(int device, off_t offset, off_t length, uint32 blockSize, status = walk_volume_recognition_sequence(device, offset, blockSize, blockShift); if (status != B_OK) { - TRACE_ERROR(("udf_recognize: Invalid sequence. status = %" B_PRId32 + TRACE(("udf_recognize: Invalid sequence. status = %" B_PRId32 "\n", status)); return status; } @@ -118,7 +118,7 @@ walk_volume_recognition_sequence(int device, off_t offset, uint32 blockSize, if (chunk.InitCheck() != B_OK) { TRACE_ERROR(("walk_volume_recognition_sequence: Failed to construct " "MemoryChunk\n")); - return B_ERROR; + return chunk.InitCheck(); } bool foundExtended = false; @@ -156,7 +156,7 @@ walk_volume_recognition_sequence(int device, off_t offset, uint32 blockSize, break; } } else { - TRACE_ERROR(("read_pos(pos:%" B_PRIdOFF ", len:%" B_PRIu32 ") " + TRACE(("read_pos(pos:%" B_PRIdOFF ", len:%" B_PRIu32 ") " "failed with: 0x%lx\n", address, blockSize, bytesRead)); break; }