Skip to content

Commit

Permalink
printk_init disabled in release
Browse files Browse the repository at this point in the history
  • Loading branch information
hrimfaxi committed Jun 24, 2011
1 parent 3c4628e commit 83d5448
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion popsloader/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
EXTRA_OPTIONS = -j4

all:
make $(EXTRA_OPTIONS) -C popcorn CONFIG_620=1 CONFIG_639=1 CONFIG_635=1 CONFIG_500=1 DEBUG=1
make $(EXTRA_OPTIONS) -C popcorn CONFIG_620=1 CONFIG_639=1 CONFIG_635=1 CONFIG_500=1 #DEBUG=1
make $(EXTRA_OPTIONS) -C loader
make $(EXTRA_OPTIONS) -C core
@mkdir dist || true
Expand Down
2 changes: 1 addition & 1 deletion popsloader/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ int module_start(SceSize args, void* argp)
pops_fw_version = FW_635;
psp_fw_version = sceKernelDevkitVersion();
psp_model = sceKernelGetModel();
pspDebugScreenInit();
printk_init();
mount_memory_stick();
setup_nid_resolver();
sctrlSetCustomStartModule(&custom_start_module);
Expand Down
5 changes: 5 additions & 0 deletions popsloader/core/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
#ifndef MAIN_H
#define MAIN_H

#ifdef DEBUG
#define printk pspDebugScreenPrintf
#define printk_init pspDebugScreenInit
#else
#define printk(...)
#define printk_init(...)
#endif

#define BASE_PATH "ms0:/seplugins/popsloader/"
#define MODULE_PATH BASE_PATH "modules/"
Expand Down
2 changes: 1 addition & 1 deletion popsloader/loader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int module_start(SceSize args, void* argp)

psp_fw_version = sceKernelDevkitVersion();
psp_model = sceKernelGetModel();
pspDebugScreenInit();
printk_init();
mount_memory_stick();

ret = load_popsloader();
Expand Down
5 changes: 5 additions & 0 deletions popsloader/loader/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
#ifndef MAIN_H
#define MAIN_H

#ifdef DEBUG
#define printk pspDebugScreenPrintf
#define printk_init pspDebugScreenInit
#else
#define printk(...)
#define printk_init(...)
#endif

#define BASE_PATH "ms0:/seplugins/popsloader/"
#define MODULE_PATH BASE_PATH "modules/"
Expand Down

0 comments on commit 83d5448

Please sign in to comment.