1
0
Fork 0
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:
Resaec 2018-09-26 02:13:20 +02:00
parent 762383f0d2
commit d67a7c0a87
No known key found for this signature in database
GPG key ID: 5E890BD898EA9064
11 changed files with 11 additions and 39 deletions

View file

@ -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

View file

@ -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

View file

@ -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);
}

View file

@ -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

View file

@ -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};

View file

@ -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);

View file

@ -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

View file

@ -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

View file

@ -26,7 +26,6 @@
#include "mmc.h"
#include "sd.h"
#include "../timers.h"
#include "../lib/driver_utils.h"
#define UNSTUFF_BITS(resp,start,size) \
({ \

View file

@ -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;

View file

@ -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>