Skip to content

Commit 36fb878

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/provider/provider_devdax_memory.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
umf_memory_provider_ops_t *umfDevDaxMemoryProviderOps(void) {
2323
// not supported
24+
LOG_ERR("DevDax memory provider is disabled!");
2425
return NULL;
2526
}
2627

@@ -30,12 +31,14 @@ umf_result_t umfDevDaxMemoryProviderParamsCreate(
3031
(void)hParams;
3132
(void)path;
3233
(void)size;
34+
LOG_ERR("DevDax memory provider is disabled!");
3335
return UMF_RESULT_ERROR_NOT_SUPPORTED;
3436
}
3537

3638
umf_result_t umfDevDaxMemoryProviderParamsDestroy(
3739
umf_devdax_memory_provider_params_handle_t hParams) {
3840
(void)hParams;
41+
LOG_ERR("DevDax memory provider is disabled!");
3942
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4043
}
4144

@@ -45,13 +48,15 @@ umf_result_t umfDevDaxMemoryProviderParamsSetDeviceDax(
4548
(void)hParams;
4649
(void)path;
4750
(void)size;
51+
LOG_ERR("DevDax memory provider is disabled!");
4852
return UMF_RESULT_ERROR_NOT_SUPPORTED;
4953
}
5054

5155
umf_result_t umfDevDaxMemoryProviderParamsSetProtection(
5256
umf_devdax_memory_provider_params_handle_t hParams, unsigned protection) {
5357
(void)hParams;
5458
(void)protection;
59+
LOG_ERR("DevDax memory provider is disabled!");
5560
return UMF_RESULT_ERROR_NOT_SUPPORTED;
5661
}
5762

0 commit comments

Comments
 (0)