예제 #1
0
파일: util.c 프로젝트: dksite/iphonelinux
void fbPrintf(const char* format, ...) {
	char buffer[1000];
	buffer[0] = '\0';

	va_list args;
	va_start(args, format);
	vsprintf(buffer, format, args);
	va_end(args);
	framebuffer_print(buffer);
}
예제 #2
0
파일: util.c 프로젝트: dksite/iphonelinux
void bufferPrint(const char* toBuffer) {
	if(UartHasInit)
		uartPrint(toBuffer);

	if(FramebufferHasInit)
		framebuffer_print(toBuffer);

	int len = strlen(toBuffer);
	addToBuffer(toBuffer, len);
}
예제 #3
0
void fbPrintf(const char* format, ...) {
	static char buffer[1000];
	EnterCriticalSection();
	buffer[0] = '\0';

	va_list args;
	va_start(args, format);
	vsprintf(buffer, format, args);
	va_end(args);
	framebuffer_print(buffer);
	LeaveCriticalSection();
}
예제 #4
0
void bufferPrint(const char* toBuffer) {
	if(UartHasInit)
		uartPrint(toBuffer);

	if(FramebufferHasInit)
		framebuffer_print(toBuffer);

	int len = strlen(toBuffer);
	addToBuffer(toBuffer, len);

	if(acm_is_ready)
		acm_buffer_notify();
}