Console printing is broken in libnds 1.4.4

Post Reply
RyouArashi
Posts: 29
Joined: Sun Mar 29, 2009 9:23 pm

Console printing is broken in libnds 1.4.4

Post by RyouArashi » Sun Jul 25, 2010 5:24 pm

Console printing is broken since updating libnds to v1.4.4, i.e. printed text does not show up on screen.
This applies for the arm9 template and many examples.

I checked the recent changes and saw the call to setvbuf was removed for stdout.
Readding the line (inside main.c of my project) makes printing work again.

Code: Select all

#include <nds.h>
#include <stdio.h>

int main(void)
{
	consoleDemoInit();
	
	// Uncomment this line to make printing work again:
	
	//setvbuf(stdout, NULL , _IONBF, 0);
	
	iprintf("Hello World!");
	while(1) {
		swiWaitForVBlank();
	}
}
Patch submitted under: https://sourceforge.net/tracker/?func=d ... tid=668553

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests