From f218547ef9b9f93d3a60f88fba36dc4ea6f3ca98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Mon, 11 Oct 2021 16:12:48 +0200 Subject: [PATCH] Remove unused debug function --- include/osdep_service.h | 1 - os_dep/osdep_service.c | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/include/osdep_service.h b/include/osdep_service.h index 6fc4ae0..8fc0ab2 100644 --- a/include/osdep_service.h +++ b/include/osdep_service.h @@ -139,7 +139,6 @@ typedef enum mstat_status { void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 sz); void rtw_mstat_dump(void *sel); bool match_mstat_sniff_rules(const enum mstat_f flags, const size_t size); -void dbg_rtw_vmfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line); void *dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line); void *dbg_rtw_zmalloc(u32 sz, const enum mstat_f flags, const char *func, const int line); void dbg_rtw_mfree(void *pbuf, const enum mstat_f flags, u32 sz, const char *func, const int line); diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c index d3714a8..010eae3 100644 --- a/os_dep/osdep_service.c +++ b/os_dep/osdep_service.c @@ -494,21 +494,6 @@ bool match_mstat_sniff_rules(const enum mstat_f flags, const size_t size) return _FALSE; } -inline void dbg_rtw_vmfree(void *pbuf, u32 sz, const enum mstat_f flags, const char *func, const int line) -{ - - if (match_mstat_sniff_rules(flags, sz)) - RTW_INFO("DBG_MEM_ALLOC %s:%d %s(%d)\n", func, line, __FUNCTION__, (sz)); - - vfree((pbuf)); - - rtw_mstat_update( - flags - , MSTAT_FREE - , sz - ); -} - inline void *dbg_rtw_malloc(u32 sz, const enum mstat_f flags, const char *func, const int line) { void *p;