logging: strip down and clean `log.h` and `log.c`
[babeltrace.git] / src / compat / mman.c
index 1cc1c44c8380f571284cc6e3948b1c8f72fce2e2..251e87354d1a40e1908c522d4031d7095b1eed47 100644 (file)
@@ -152,8 +152,8 @@ DWORD map_prot_flags(int prot, DWORD *dwDesiredAccess)
        return 0;
 }
 
-void *bt_mmap(void *addr __attribute__((unused)), size_t length, int prot,
-               int flags, int fd, off_t offset, int log_level)
+void *bt_mmap(size_t length, int prot, int flags, int fd, off_t offset,
+               int log_level)
 {
        struct mmap_mapping *mapping = NULL;
        void *mapping_addr;
@@ -285,7 +285,7 @@ size_t bt_mmap_get_offset_align_size(int log_level)
        SYSTEM_INFO sysinfo;
 
        GetNativeSystemInfo(&sysinfo);
-       BT_LOG_WRITE_CUR_LVL(BT_LOG_DEBUG, log_level, BT_LOG_TAG,
+       BT_LOG_WRITE_PRINTF_CUR_LVL(BT_LOG_DEBUG, log_level, BT_LOG_TAG,
                "Allocator granularity is %lu.",
                sysinfo.dwAllocationGranularity);
 
This page took 0.023497 seconds and 4 git commands to generate.