18
18
#include <umf/memory_provider_ops.h>
19
19
#include <umf/providers/provider_file_memory.h>
20
20
21
+ #include "utils_log.h"
22
+
21
23
#if defined(_WIN32 ) || defined(UMF_NO_HWLOC )
22
24
23
25
umf_memory_provider_ops_t * umfFileMemoryProviderOps (void ) {
24
26
// not supported
27
+ LOG_ERR ("File memory provider is disabled!" );
25
28
return NULL ;
26
29
}
27
30
28
31
umf_result_t umfFileMemoryProviderParamsCreate (
29
32
umf_file_memory_provider_params_handle_t * hParams , const char * path ) {
30
33
(void )hParams ;
31
34
(void )path ;
35
+ LOG_ERR ("File memory provider is disabled!" );
32
36
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
33
37
}
34
38
35
39
umf_result_t umfFileMemoryProviderParamsDestroy (
36
40
umf_file_memory_provider_params_handle_t hParams ) {
37
41
(void )hParams ;
42
+ LOG_ERR ("File memory provider is disabled!" );
38
43
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
39
44
}
40
45
41
46
umf_result_t umfFileMemoryProviderParamsSetPath (
42
47
umf_file_memory_provider_params_handle_t hParams , const char * path ) {
43
48
(void )hParams ;
44
49
(void )path ;
50
+ LOG_ERR ("File memory provider is disabled!" );
45
51
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
46
52
}
47
53
48
54
umf_result_t umfFileMemoryProviderParamsSetProtection (
49
55
umf_file_memory_provider_params_handle_t hParams , unsigned protection ) {
50
56
(void )hParams ;
51
57
(void )protection ;
58
+ LOG_ERR ("File memory provider is disabled!" );
52
59
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
53
60
}
54
61
@@ -57,6 +64,7 @@ umf_result_t umfFileMemoryProviderParamsSetVisibility(
57
64
umf_memory_visibility_t visibility ) {
58
65
(void )hParams ;
59
66
(void )visibility ;
67
+ LOG_ERR ("File memory provider is disabled!" );
60
68
return UMF_RESULT_ERROR_NOT_SUPPORTED ;
61
69
}
62
70
0 commit comments