(RGL PS3) Change some printfs to RARCH_LOG/RARCH_WARN

This commit is contained in:
Twinaphex 2012-09-12 16:56:09 +02:00
parent 939b9dd259
commit 95079a5cee
3 changed files with 4 additions and 5 deletions

View File

@ -352,7 +352,7 @@ inline static CGresource _RGLGetBaseResource( CGresource resource )
case CG_UNDEFINED:
return CG_UNDEFINED;
default:
printf("RGL WARN: resource 0x%d is unknown here.\n", resource );
RARCH_WARN("Resource 0x%d is unknown here.\n", resource );
return CG_UNDEFINED;
}
}

View File

@ -115,11 +115,10 @@ static const int sysutilModeCount = sizeof( sysutilModes ) / sizeof( sysutilMode
static inline void _RGLPrintIt( unsigned int v )
{
printf( "%02x %02x %02x %02x : ", ( v >> 24 )&0xff, ( v >> 16 )&0xff, ( v >> 8 )&0xff, v&0xff );
RARCH_LOG( "%02x %02x %02x %02x : \n", ( v >> 24 )&0xff, ( v >> 16 )&0xff, ( v >> 8 )&0xff, v&0xff );
for ( unsigned int mask = ( 0x1 << 31 ), i = 1; mask != 0; mask >>= 1, i++ )
printf("%d%s", ( v & mask ) ? 1 : 0, ( i % 8 == 0 ) ? " " : "");
printf( "\n" );
RARCH_LOG("%d%s\n", ( v & mask ) ? 1 : 0, ( i % 8 == 0 ) ? " " : "");
}
static inline void _RGLPrintFifoFromPut(unsigned int numWords)

View File

@ -4390,7 +4390,7 @@ static void _RGLPlatformValidateTextureStage( int unit, jsTexture* texture )
}
else
{
//printf("RGL WARN: Texture bound to unit %d is incomplete.\n", unit);
//RARCH_WARN("Texture bound to unit %d is incomplete.\n", unit);
GLuint remap = CELL_GCM_REMAP_MODE(
CELL_GCM_TEXTURE_REMAP_ORDER_XYXY,
CELL_GCM_TEXTURE_REMAP_FROM_A,