blob: 4c094f3655df633c6fdc27e4fc610e1a982f9178 [file] [log] [blame]
/*
* debug.h
*
* debug functions
* head file
*
* Copyright (C) knightray@gmail.com
*
* SPDX-License-Identifier: GPL-2.0+
*/
#ifndef _DEBUG_H
#define _DEBUG_H
#include "comdef.h"
/*
#define DBG_CACHE
#define DBG_DIR
#define DBG_DIRENT
#define DBG_FAT
#define DBG_FILE
#define DBG_INITFS
*/
#define DBG printf
#define WARN printf
#define ERR printf
#define INFO printf
#define ASSERT(f) if(!(f)) { \
printf("ASSERT failed at %s():%d\n", __FUNCTION__, __LINE__); \
/* exit(0); */ \
}
void print_sector(ubyte * secbuf, ubyte bychar);
static inline void nulldbg(char * fmt, ...)
{
}
#endif