mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-12-18 16:32:05 +00:00
fusee: add special log level for sd card debug
This commit is contained in:
parent
ec398dc612
commit
52c7932f1f
2 changed files with 22 additions and 21 deletions
|
@ -28,6 +28,7 @@ typedef enum {
|
||||||
SCREEN_LOG_LEVEL_MANDATORY = 3, /* No log prefix. */
|
SCREEN_LOG_LEVEL_MANDATORY = 3, /* No log prefix. */
|
||||||
SCREEN_LOG_LEVEL_INFO = 4,
|
SCREEN_LOG_LEVEL_INFO = 4,
|
||||||
SCREEN_LOG_LEVEL_DEBUG = 5,
|
SCREEN_LOG_LEVEL_DEBUG = 5,
|
||||||
|
SCREEN_LOG_LEVEL_SD_DEBUG = 6,
|
||||||
|
|
||||||
SCREEN_LOG_LEVEL_NO_PREFIX = 0x100 /* OR this to your LOG_LEVEL to prevent prefix creation. */
|
SCREEN_LOG_LEVEL_NO_PREFIX = 0x100 /* OR this to your LOG_LEVEL to prevent prefix creation. */
|
||||||
} ScreenLogLevel;
|
} ScreenLogLevel;
|
||||||
|
|
|
@ -86,7 +86,7 @@ void sdmmc_info(sdmmc_t *sdmmc, char *fmt, ...) {
|
||||||
void sdmmc_debug(sdmmc_t *sdmmc, char *fmt, ...) {
|
void sdmmc_debug(sdmmc_t *sdmmc, char *fmt, ...) {
|
||||||
va_list list;
|
va_list list;
|
||||||
va_start(list, fmt);
|
va_start(list, fmt);
|
||||||
sdmmc_print(sdmmc, SCREEN_LOG_LEVEL_DEBUG, fmt, list);
|
sdmmc_print(sdmmc, SCREEN_LOG_LEVEL_SD_DEBUG, fmt, list);
|
||||||
va_end(list);
|
va_end(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue