From aa3d4b70d7ae3dfe7eed1ba0e620a512e8ce4501 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Sat, 16 Jan 2016 16:00:31 -0600 Subject: [PATCH] Add message that we are waiting on socExit() --- source/ftp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/ftp.c b/source/ftp.c index 318f775..89d821e 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -268,7 +268,7 @@ ftp_set_socket_options(int fd) &sock_buffersize, sizeof(sock_buffersize)); if(rc != 0) { - console_print(RED "setsockopt: %d %s\n" RESET, errno, strerror(errno)); + console_print(RED "setsockopt: SO_RCVBUF %d %s\n" RESET, errno, strerror(errno)); return -1; } @@ -276,7 +276,7 @@ ftp_set_socket_options(int fd) &sock_buffersize, sizeof(sock_buffersize)); if(rc != 0) { - console_print(RED "setsockopt: %d %s\n" RESET, errno, strerror(errno)); + console_print(RED "setsockopt: SO_SNDBUF %d %s\n" RESET, errno, strerror(errno)); return -1; } @@ -1094,13 +1094,13 @@ ftp_init(void) console_print(GREEN "Ready!\n" RESET); -#if ENABLE_LOGGING +#ifdef ENABLE_LOGGING /* open log file */ FILE *fp = freopen("/ftbrony.log", "wb", stderr); if(fp == NULL) { console_print(RED "freopen: 0x%08X\n" RESET, errno); - goto stderr_fail; + goto log_fail; } /* truncate log file */ @@ -1226,7 +1226,7 @@ ftruncate_fail: if(fclose(stderr) != 0) console_print(RED "fclose: 0x%08X\n" RESET, errno); -stderr_fail: +log_fail: #endif return -1; @@ -1251,6 +1251,7 @@ ftp_exit(void) #ifdef _3DS /* deinitialize SOC service */ + console_print(CYAN "Waiting for socExit()...\n" RESET); ret = socExit(); if(ret != 0) console_print(RED "socExit: 0x%08X\n" RESET, (unsigned int)ret);