debug_dump: early return

Currently, if log_level isn't at least DEBUG, nothing will be printed,
anyways.
This commit is contained in:
Martin Pulec
2024-09-03 09:36:34 +02:00
parent 5aa5261dda
commit 06a3ca6081

View File

@@ -178,6 +178,9 @@ void log_perror(int level, const char *msg)
**/
void debug_dump(const void *lp, int len)
{
if (log_level < LOG_LEVEL_DEBUG) {
return;
}
const char *p;
int i, j, start;
char Buff[81];