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.
This commit is contained in:
Augustin Cavalier 2022-02-18 19:47:02 -05:00
parent d556224730
commit ccb7655078

View File

@ -70,7 +70,7 @@ udf_recognize(int device, off_t offset, off_t length, uint32 blockSize,
status = walk_volume_recognition_sequence(device, offset, blockSize, status = walk_volume_recognition_sequence(device, offset, blockSize,
blockShift); blockShift);
if (status != B_OK) { if (status != B_OK) {
TRACE_ERROR(("udf_recognize: Invalid sequence. status = %" B_PRId32 TRACE(("udf_recognize: Invalid sequence. status = %" B_PRId32
"\n", status)); "\n", status));
return status; return status;
} }
@ -118,7 +118,7 @@ walk_volume_recognition_sequence(int device, off_t offset, uint32 blockSize,
if (chunk.InitCheck() != B_OK) { if (chunk.InitCheck() != B_OK) {
TRACE_ERROR(("walk_volume_recognition_sequence: Failed to construct " TRACE_ERROR(("walk_volume_recognition_sequence: Failed to construct "
"MemoryChunk\n")); "MemoryChunk\n"));
return B_ERROR; return chunk.InitCheck();
} }
bool foundExtended = false; bool foundExtended = false;
@ -156,7 +156,7 @@ walk_volume_recognition_sequence(int device, off_t offset, uint32 blockSize,
break; break;
} }
} else { } 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)); "failed with: 0x%lx\n", address, blockSize, bytesRead));
break; break;
} }