Skip to content

Commit 377b16a

Browse files
committed
[ppctty] fix kprintf macro and remove unused imports
1 parent 30310d9 commit 377b16a

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

iop/debug/ppctty/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# PPC TTY
2+
3+
IOP Module to redirect IOP Printf from stdout to PowerPC UART on DECKARD Models (`SCPH-75xxx` and up)
4+
5+
Coded by @asmblur

iop/debug/ppctty/src/imports.lst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,14 @@ I_printf
1313
stdio_IMPORTS_end
1414

1515
sysclib_IMPORTS_start
16+
#ifdef KPRINTF
1617
I_prnt
17-
I_strcpy
18+
#endif
1819
I_memcpy
19-
I_strlen
20-
I_memcmp
2120
sysclib_IMPORTS_end
2221

2322
ioman_IMPORTS_start
2423
I_open
25-
I_read
2624
I_close
2725
I_AddDrv
2826
I_DelDrv

iop/debug/ppctty/src/tty.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static iop_device_t tty_fsd =
129129
&fsd_ops,
130130
};
131131

132-
#ifdef KRPINTF
132+
#ifdef KPRINTF
133133
void sprintf_putchar(void *context, int c)
134134
{
135135
char **string = (char **)context;
@@ -165,7 +165,7 @@ int tty_init(void)
165165
// open stdout
166166
close(1);
167167
open("tty:", O_WRONLY);
168-
#ifdef KRPINTF
168+
#ifdef KPRINTF
169169
printf("PPCTTY: KprintfSet\n");
170170
KprintfSet(&_kPrintf, NULL);
171171
#endif

0 commit comments

Comments
 (0)