mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
moving log.c and log.h to lib/
removing lib/driver_utils.h as it have no purpose anymore now
This commit is contained in:
parent
762383f0d2
commit
d67a7c0a87
11 changed files with 11 additions and 39 deletions
|
@ -17,10 +17,9 @@
|
|||
#include <inttypes.h>
|
||||
|
||||
#include "exception_handlers.h"
|
||||
#include "lib/driver_utils.h"
|
||||
#include "utils.h"
|
||||
#include "display/video_fb.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
|
||||
#define CODE_DUMP_SIZE 0x30
|
||||
#define STACK_DUMP_SIZE 0x60
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2018 Atmosphère-NX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef FUSEE_DRIVER_UTILS_H
|
||||
#define FUSEE_DRIVER_UTILS_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#endif
|
|
@ -14,10 +14,9 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "log.h"
|
||||
#include "display/video_fb.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* default log level for screen output */
|
||||
ScreenLogLevel g_screen_log_level = SCREEN_LOG_LEVEL_MANDATORY;
|
||||
|
@ -34,7 +33,6 @@ void print_to_screen(ScreenLogLevel screen_log_level, char *message) {
|
|||
/* don't print to screen if below log level */
|
||||
if(screen_log_level > g_screen_log_level) return;
|
||||
|
||||
//video_puts(buf);
|
||||
printf(message);
|
||||
}
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef FUSEE_PRINT_H
|
||||
#define FUSEE_PRINT_H
|
||||
#ifndef FUSEE_SECONDARY_PRINT_H
|
||||
#define FUSEE_SECONDARY_PRINT_H
|
||||
|
||||
#define PRINT_MESSAGE_MAX_LENGTH 512
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
#include "fs_utils.h"
|
||||
#include "stage2.h"
|
||||
#include "lib/ini.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
|
||||
static loader_ctx_t g_loader_ctx = {0};
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include "gpt.h"
|
||||
#include "display/video_fb.h"
|
||||
#include "sdmmc/sdmmc.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
|
||||
extern void (*__program_exit_callback)(int rc);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
#define u8 uint8_t
|
||||
#define u32 uint32_t
|
||||
#include "exosphere_bin.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
#undef u8
|
||||
#undef u32
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#define u8 uint8_t
|
||||
#define u32 uint32_t
|
||||
#include "thermosphere_bin.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
#undef u8
|
||||
#undef u32
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include "mmc.h"
|
||||
#include "sd.h"
|
||||
#include "../timers.h"
|
||||
#include "../lib/driver_utils.h"
|
||||
|
||||
#define UNSTUFF_BITS(resp,start,size) \
|
||||
({ \
|
||||
|
|
|
@ -30,8 +30,7 @@
|
|||
#include "../gpio.h"
|
||||
#include "../pmc.h"
|
||||
#include "../max7762x.h"
|
||||
#include "../lib/driver_utils.h"
|
||||
#include "../log.h"
|
||||
#include "../lib/log.h"
|
||||
|
||||
static SdmmcLogLevel g_sdmmc_log_level = SDMMC_LOG_NONE;
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "timers.h"
|
||||
#include "btn.h"
|
||||
#include "panic.h"
|
||||
#include "log.h"
|
||||
#include "lib/log.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <inttypes.h>
|
||||
|
|
Loading…
Reference in a new issue