kegel
Joined: 27 Sep 2005 Posts: 3 Location: Hamburg
|
Posted: Sun Oct 09, 2005 8:25 pm Post subject: ps2link printf question |
|
|
Hello,
I am having some trouble using printf for debugging in InLink. I'm not sure if this is normal or if I'm doing anything wrong...
I have this piece of code from the Hello World example:
| Code: | #include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>
#include <sifrpc.h>
int main()
{
SifInitRpc(0);
printf("Hello, world!\n");
nprintf("Hello, again, from Naplink RPC!\n");
return 0;
}
|
I can compile it and run the elf file through InLink without any problems. Now whenever I add another printf("something"); recompile the elf and try to execute it through InLink, I get this message and have to manually reset the PS2 :
| Code: | Get Reboot Request From EE
ps2ip_ShutDown: Shutting down ps2ip-module
|
When I execute the same file after the reboot, it works fine until i make new changes. This only happens when I make calls to printf/nprintf from my code. Is there something obvious I'm missing?
I'm using PSLink v1.2.4 and InLink v1.3.7.
Thanks,
kegel |
|