Log Message: Use DT_REG / DT_DIR directly if available and fall back to DTTOIF if not. Bail out with an explicit error if none is present.