You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
ESP-IDF V5.2.3 Bug in Compiler at Printf level
ESP-IDF V5.2.3 Bug in Compiler at Printf level (IDFGH-13927)
Oct 22, 2024
filzek
changed the title
ESP-IDF V5.2.3 Bug in Compiler at Printf level (IDFGH-13927)
ESP-IDF V5.2.3 Bug or Miss Interpret in Compiler at Printf level (IDFGH-13927)
Oct 22, 2024
Answers checklist.
General issue report
There is an error inside the Printf compiler optmizations and also with the stub.
unsigned long sensor_received = 12345647;
unsigned long last_sensorid_received = 12345649;
unsigned long sensor_length = 0;
struct timeval tv2;
gettimeofday( & tv2, NULL);
printf("Time: %ld seconds\n", tv2.tv_sec); // Separate print for tv.tv_sec
to validate all kind of possible acttions the code try all kinds.
Before first printf: sensor_received = [12345647]
RECEIVED [12345647]
Before second printf: sensor_received = [12345647]
[1526] [0] RX433 Received: SENSOR [0] - last_sensorid_received [12345647]
[1529] RX433 Received: SENSOR [12345647] - last_sensorid_received [12345649]
RX433 Received: SENSOR [12345647] - last_sensorid_received [12345649]
1526] [0] RX433 Received: SENSOR [0] - last_sensorid_received [12345647]
this could be related to the %ld type not being correct alligned with the compiler in this arguments?
as of using
printf("[%d] [%" PRId64 "] RX433 Received: SENSOR [%lu] - last_sensorid_received [%lu]\n",
LINE, tv2.tv_sec, sensor_received, last_sensorid_received);
this prints correct, so, why in the esp-idf the type is PRId64 ?
The text was updated successfully, but these errors were encountered: