Skip to content

Commit e777ed6

Browse files
committed
Add error messages when File provider is disabled
Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 36fb878 commit e777ed6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/provider/provider_file_memory.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,38 @@
2222

2323
umf_memory_provider_ops_t *umfFileMemoryProviderOps(void) {
2424
// not supported
25+
LOG_ERR("File memory provider is disabled!");
2526
return NULL;
2627
}
2728

2829
umf_result_t umfFileMemoryProviderParamsCreate(
2930
umf_file_memory_provider_params_handle_t *hParams, const char *path) {
3031
(void)hParams;
3132
(void)path;
33+
LOG_ERR("File memory provider is disabled!");
3234
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3335
}
3436

3537
umf_result_t umfFileMemoryProviderParamsDestroy(
3638
umf_file_memory_provider_params_handle_t hParams) {
3739
(void)hParams;
40+
LOG_ERR("File memory provider is disabled!");
3841
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3942
}
4043

4144
umf_result_t umfFileMemoryProviderParamsSetPath(
4245
umf_file_memory_provider_params_handle_t hParams, const char *path) {
4346
(void)hParams;
4447
(void)path;
48+
LOG_ERR("File memory provider is disabled!");
4549
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4650
}
4751

4852
umf_result_t umfFileMemoryProviderParamsSetProtection(
4953
umf_file_memory_provider_params_handle_t hParams, unsigned protection) {
5054
(void)hParams;
5155
(void)protection;
56+
LOG_ERR("File memory provider is disabled!");
5257
return UMF_RESULT_ERROR_NOT_SUPPORTED;
5358
}
5459

@@ -57,6 +62,7 @@ umf_result_t umfFileMemoryProviderParamsSetVisibility(
5762
umf_memory_visibility_t visibility) {
5863
(void)hParams;
5964
(void)visibility;
65+
LOG_ERR("File memory provider is disabled!");
6066
return UMF_RESULT_ERROR_NOT_SUPPORTED;
6167
}
6268

0 commit comments

Comments
 (0)