diff --git a/mx_mysql.c b/mx_mysql.c index cd002b3..2d25f55 100644 --- a/mx_mysql.c +++ b/mx_mysql.c @@ -765,7 +765,6 @@ static int mx_mysql_real_connect(struct mx_mysql *mysql, const char *host, const return 0; } - mx_log_debug("ERROR: mysql_real_connect(): %s", mx__mysql_error(mysql)); return res; } diff --git a/mx_util.c b/mx_util.c index 0829ae9..5befe06 100644 --- a/mx_util.c +++ b/mx_util.c @@ -205,7 +205,6 @@ inline int mx_strtoll(char *str, signed long long int *to) int mx_strtoui(char *str, unsigned int *to) { unsigned long int ul; - char *end; int res; assert(str); @@ -226,7 +225,6 @@ int mx_strtoui(char *str, unsigned int *to) int mx_strtou8(char *str, uint8_t *to) { unsigned long int ul; - char *end; int res; assert(str); @@ -247,7 +245,6 @@ int mx_strtou8(char *str, uint8_t *to) int mx_strtou16(char *str, uint16_t *to) { unsigned long int ul; - char *end; int res; assert(str); @@ -268,7 +265,6 @@ int mx_strtou16(char *str, uint16_t *to) int mx_strtou32(char *str, uint32_t *to) { unsigned long int ul; - char *end; int res; assert(str); @@ -289,7 +285,6 @@ int mx_strtou32(char *str, uint32_t *to) int mx_strtou64(char *str, uint64_t *to) { unsigned long long int ull; - char *end; int res; assert(str); @@ -312,7 +307,6 @@ int mx_strtou64(char *str, uint64_t *to) int mx_strtoi(char *str, signed int *to) { signed long int l; - char *end; int res; assert(str); @@ -333,7 +327,6 @@ int mx_strtoi(char *str, signed int *to) int mx_strtoi8(char *str, int8_t *to) { signed long int l; - char *end; int res; assert(str); @@ -354,7 +347,6 @@ int mx_strtoi8(char *str, int8_t *to) int mx_strtoi16(char *str, int16_t *to) { signed long int l; - char *end; int res; assert(str); @@ -375,7 +367,6 @@ int mx_strtoi16(char *str, int16_t *to) int mx_strtoi32(char *str, int32_t *to) { signed long int l; - char *end; int res; assert(str); @@ -396,7 +387,6 @@ int mx_strtoi32(char *str, int32_t *to) int mx_strtoi64(char *str, int64_t *to) { signed long long int ll; - char *end; int res; assert(str); diff --git a/mx_util.h b/mx_util.h index 9fac460..64f100c 100644 --- a/mx_util.h +++ b/mx_util.h @@ -18,7 +18,7 @@ do {\ if (!(test)) {\ errno=(eno);\ - mx_log_debug("Assertion '" #test "' failed. Returning -(errno=" #eno ") [%d]: %m", -errno);\ + mx_log_emerg("Assertion '" #test "' failed. Returning -(errno=" #eno ") [%d]: %m", -errno);\ return -errno;\ }\ } while (0) @@ -27,7 +27,7 @@ do {\ if (!(test)) {\ errno=(eno);\ - mx_log_debug("Assertion '" #test "' failed. Setting errno=" #eno " [%d] and returning NULL: %m", errno);\ + mx_log_emerg("Assertion '" #test "' failed. Setting errno=" #eno " [%d] and returning NULL: %m", errno);\ return NULL;\ }\ } while (0)