Deprecate dprintf over printf

This commit is contained in:
Xavier Del Campo Romero 2021-01-02 03:29:16 +01:00
parent 394bf97e12
commit 2a3366c472
4 changed files with 4 additions and 6 deletions

View File

@ -20,7 +20,7 @@
#ifndef SERIAL_INTERFACE
#define Serial_printf dprintf
#define Serial_printf printf
#endif // SERIAL_INTERFACE

View File

@ -84,11 +84,11 @@ bool PltParserLoadFile(const char* strPath, TYPE_FLIGHT_DATA* const ptrFlightDat
{
int k;
dprintf("Buffer: ");
printf("Buffer: ");
for (k = 0; k < strlen(buffer); k++)
{
dprintf("0x%02X ", buffer[k]);
printf("0x%02X ", buffer[k]);
}
// Format should always be HH:MM (5 characters)
// Treat any other combination as possible error

View File

@ -45,7 +45,6 @@ bool SerialRead(uint8_t* ptrArray, size_t nBytes)
{
if (nBytes == 0)
{
dprintf("SerialRead: invalid size %d\n", nBytes);
return false;
}
@ -67,7 +66,6 @@ bool SerialWrite(void* ptrArray, size_t nBytes)
if (nBytes == 0)
{
dprintf("SerialWrite: invalid size %d\n", nBytes);
return false;
}

View File

@ -78,7 +78,7 @@ bool SfxUploadSound_Ex(const char* file_path, SsVag* vag, uint8_t voiceIndex)
uint16_t percentage = SPUBytesUsed * 100 / SPU_MAX_ALLOWED_BYTES;
dprintf("SPU usage: %d%%\n", percentage);
Serial_printf("SPU usage: %d%%\n", percentage);
}
#endif // PSXSDK_DEBUG