1818#include <umf/memory_provider_ops.h>
1919#include <umf/providers/provider_file_memory.h>
2020
21+ #include "utils_log.h"
22+
2123#if defined(_WIN32 ) || defined(UMF_NO_HWLOC )
2224
2325umf_memory_provider_ops_t * umfFileMemoryProviderOps (void ) {
2426 // not supported
27+ LOG_ERR ("File memory provider is disabled!" );
2528 return NULL ;
2629}
2730
2831umf_result_t umfFileMemoryProviderParamsCreate (
2932 umf_file_memory_provider_params_handle_t * hParams , const char * path ) {
3033 (void )hParams ;
3134 (void )path ;
35+ LOG_ERR ("File memory provider is disabled!" );
3236 return UMF_RESULT_ERROR_NOT_SUPPORTED ;
3337}
3438
3539umf_result_t umfFileMemoryProviderParamsDestroy (
3640 umf_file_memory_provider_params_handle_t hParams ) {
3741 (void )hParams ;
42+ LOG_ERR ("File memory provider is disabled!" );
3843 return UMF_RESULT_ERROR_NOT_SUPPORTED ;
3944}
4045
4146umf_result_t umfFileMemoryProviderParamsSetPath (
4247 umf_file_memory_provider_params_handle_t hParams , const char * path ) {
4348 (void )hParams ;
4449 (void )path ;
50+ LOG_ERR ("File memory provider is disabled!" );
4551 return UMF_RESULT_ERROR_NOT_SUPPORTED ;
4652}
4753
4854umf_result_t umfFileMemoryProviderParamsSetProtection (
4955 umf_file_memory_provider_params_handle_t hParams , unsigned protection ) {
5056 (void )hParams ;
5157 (void )protection ;
58+ LOG_ERR ("File memory provider is disabled!" );
5259 return UMF_RESULT_ERROR_NOT_SUPPORTED ;
5360}
5461
@@ -57,6 +64,7 @@ umf_result_t umfFileMemoryProviderParamsSetVisibility(
5764 umf_memory_visibility_t visibility ) {
5865 (void )hParams ;
5966 (void )visibility ;
67+ LOG_ERR ("File memory provider is disabled!" );
6068 return UMF_RESULT_ERROR_NOT_SUPPORTED ;
6169}
6270
0 commit comments