From c06f83642fbc4b5b664fae1063df62f93c19fd8e Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Sun, 12 Mar 2023 08:24:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E7=BC=96=E8=AF=91=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84free=E5=AE=95=E6=9C=BA=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- arm11/Makefile | 4 ++-- source/arm11/filebrowser.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arm11/Makefile b/arm11/Makefile index dd693b5..c98f777 100644 --- a/arm11/Makefile +++ b/arm11/Makefile @@ -38,7 +38,7 @@ endif #--------------------------------------------------------------------------------- ARCH := -march=armv6k+vfpv2 -mtune=mpcore -mfloat-abi=hard -mtp=soft -marm -mthumb-interwork -CFLAGS := $(ARCH) -std=c17 -O2 -gdwarf-4 -flto -mword-relocations \ +CFLAGS := $(ARCH) -std=c17 -O2 -gdwarf-4 -mword-relocations \ -ffunction-sections -fno-math-errno -Wall -Wextra CFLAGS += $(INCLUDE) $(DEFINES) @@ -50,7 +50,7 @@ ASFLAGS := $(ARCH) -gdwarf-4 $(INCLUDE) $(DEFINES) LDFLAGS = $(ARCH) -gdwarf-4 -flto -specs=../arm11.specs -Wl,-Map,$(notdir $*.map) -nostartfiles ifeq ($(strip $(NO_DEBUG)),) - CFLAGS := $(subst -flto,,$(CFLAGS)) -fstack-protector-strong -fno-inline + CFLAGS := -fstack-protector-strong -fno-inline CXXFLAGS := $(subst -flto,,$(CXXFLAGS)) -fstack-protector-strong -fno-inline LDFLAGS := $(subst -flto,,$(LDFLAGS)) -fstack-protector-strong -fno-inline -Wl,-wrap=malloc,-wrap=calloc,-wrap=free endif diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 9ab559e..a17121c 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -241,7 +241,8 @@ static atp_error_t disp_str( atp_callerdata_t data, atp_counter_t, atp_linecfg_t cfg->text = (atp_text_t)data; return ATP_SUCCESS; } -void log( const char *fmt, ... ) { + +/*void log( const char *fmt, ... ) { char buf[512]; ee_puts("\x1b[2J"); @@ -257,7 +258,7 @@ void log( const char *fmt, ... ) { hidScanInput(); down = hidKeysDown(); }while ( down == 0 ); -} +}*/ static atp_error_t select_region( atp_callerdata_t, atp_counter_t index, atp_itemcfg_t *config ) { @@ -517,10 +518,9 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a } if( ACHTLIB_SUCCESS != acl_select_game( serial, 0, &len ) ) { - log("select game failed"); acl_close_lib(); return WAIT_ON_ERRPAGE( display_selcht ); - }log("select game done"); + } if( len == 0 ) { acl_close_lib();