Fix pdschRxdataF_comp scope for UE.

Correctly calculate the amount of data to be copied. Copy at correct offset.
Imporve error message in case data is insufficient.
This commit is contained in:
Bartosz Podrygajlo
2025-01-28 16:55:17 +01:00
parent ab75a7ccfb
commit c01adc5e00
2 changed files with 8 additions and 4 deletions
@@ -132,7 +132,11 @@ void unlockScopeData(enum scopeDataType type)
}
if (total_size != (uint64_t)scope_data.data.scope_graph_data->dataSize) {
LOG_E(PHY,
"Scope is missing data - not all data that was expected was copied - possibly missed copyDataUnsafeWithOffset call\n");
"Scope is missing data - not all data that was expected was copied - possibly missed copyDataUnsafeWithOffset call. "
"scope = %s, total_size = %lu, dataSize = %d\n",
scope_id_to_string(type),
total_size,
scope_data.data.scope_graph_data->dataSize);
}
scope_data.data.scope_id = type;
scope_data.is_data_ready = true;