Adjusted logging to low-level txt device
This commit is contained in:
parent
0faa96167c
commit
730bb6b209
|
@ -4,7 +4,7 @@
|
||||||
# and where the MCP will run (ram or flash)
|
# and where the MCP will run (ram or flash)
|
||||||
#
|
#
|
||||||
UNIT := a2560k
|
UNIT := a2560k
|
||||||
MEMORY := flash
|
MEMORY := ram
|
||||||
|
|
||||||
# CPU_WDC65816 0x16 /* CPU code for the Western Design Center 65816 */
|
# CPU_WDC65816 0x16 /* CPU code for the Western Design Center 65816 */
|
||||||
# CPU_M68000 0x20 /* CPU code for the Motorola 68000 */
|
# CPU_M68000 0x20 /* CPU code for the Motorola 68000 */
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
BIN
src/bin/foenixmcp_a2560k_20220417.bin
Normal file
BIN
src/bin/foenixmcp_a2560k_20220417.bin
Normal file
Binary file not shown.
26
src/log.c
26
src/log.c
|
@ -211,8 +211,8 @@ void log_setlevel(short level) {
|
||||||
*/
|
*/
|
||||||
void log(short level, char * message) {
|
void log(short level, char * message) {
|
||||||
if (level <= log_level) {
|
if (level <= log_level) {
|
||||||
print(log_channel, message);
|
txt_print(log_channel, message);
|
||||||
print_c(log_channel, '\n');
|
txt_print(log_channel, "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,9 +226,9 @@ void log(short level, char * message) {
|
||||||
*/
|
*/
|
||||||
void log2(short level, char * message1, char * message2) {
|
void log2(short level, char * message1, char * message2) {
|
||||||
if (level <= log_level) {
|
if (level <= log_level) {
|
||||||
print(log_channel, message1);
|
char line[80];
|
||||||
print(log_channel, message2);
|
sprintf(line, "%s%s\n", message1, message2);
|
||||||
print_c(log_channel, '\n');
|
txt_print(log_channel, line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -243,10 +243,9 @@ void log2(short level, char * message1, char * message2) {
|
||||||
*/
|
*/
|
||||||
void log3(short level, const char * message1, const char * message2, const char * message3) {
|
void log3(short level, const char * message1, const char * message2, const char * message3) {
|
||||||
if (level <= log_level) {
|
if (level <= log_level) {
|
||||||
print(log_channel, message1);
|
char line[80];
|
||||||
print(log_channel, message2);
|
sprintf(line, "%s%s%s\n", message1, message2, message3);
|
||||||
print(log_channel, message3);
|
txt_print(log_channel, line);
|
||||||
print_c(log_channel, '\n');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,10 +258,11 @@ void log3(short level, const char * message1, const char * message2, const char
|
||||||
* n = the number to log
|
* n = the number to log
|
||||||
*/
|
*/
|
||||||
void log_num(short level, char * message, int n) {
|
void log_num(short level, char * message, int n) {
|
||||||
|
char line[80];
|
||||||
|
|
||||||
if (level <= log_level) {
|
if (level <= log_level) {
|
||||||
print(log_channel, message);
|
sprintf(line, "%s%08X\n", message, n);
|
||||||
print_hex_32(log_channel, n);
|
print(log_channel, line);
|
||||||
print_c(log_channel, '\n');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,6 +271,6 @@ void log_num(short level, char * message, int n) {
|
||||||
*/
|
*/
|
||||||
void log_c(short level, char c) {
|
void log_c(short level, char c) {
|
||||||
if (log_level <= level) {
|
if (log_level <= level) {
|
||||||
print_c(log_channel, c);
|
txt_put(log_channel, c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
19365
src/mapfile
19365
src/mapfile
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue