aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-01-02 03:29:16 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2021-01-03 01:15:57 +0100
commit2a3366c4722ce9caca155a156145db6a7fc34a17 (patch)
tree954a6f9a4e351586e37ea1b76a1fd5432189f8ea
parent394bf97e1233954a6fc57e7ed1635910047cfc7f (diff)
Deprecate dprintf over printf
-rw-r--r--Source/Global_Inc.h2
-rw-r--r--Source/PltParser.c4
-rw-r--r--Source/Serial.c2
-rw-r--r--Source/Sfx.c2
4 files changed, 4 insertions, 6 deletions
diff --git a/Source/Global_Inc.h b/Source/Global_Inc.h
index 245b6c3..2328d7a 100644
--- a/Source/Global_Inc.h
+++ b/Source/Global_Inc.h
@@ -20,7 +20,7 @@
#ifndef SERIAL_INTERFACE
-#define Serial_printf dprintf
+#define Serial_printf printf
#endif // SERIAL_INTERFACE
diff --git a/Source/PltParser.c b/Source/PltParser.c
index 47a7e60..ec1af3d 100644
--- a/Source/PltParser.c
+++ b/Source/PltParser.c
@@ -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
diff --git a/Source/Serial.c b/Source/Serial.c
index 2002d72..087f631 100644
--- a/Source/Serial.c
+++ b/Source/Serial.c
@@ -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;
}
diff --git a/Source/Sfx.c b/Source/Sfx.c
index 9cb0c94..dff125e 100644
--- a/Source/Sfx.c
+++ b/Source/Sfx.c
@@ -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