Skip to content

Commit

Permalink
Fix print format
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Sep 25, 2024
1 parent 9af2e61 commit 154a8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SensorQMI8658.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,15 @@ class SensorQMI8658 :
if (!__fifo_buffer) {
__fifo_buffer = (uint8_t *)calloc(alloc_size, sizeof(uint8_t));
if (!__fifo_buffer) {
log_e("Calloc buffer size %lu bytes failed!", alloc_size);
log_e("Calloc buffer size %u bytes failed!", alloc_size);
return 0;
}
__fifo_size = alloc_size;

} else if (alloc_size > __fifo_size) {
__fifo_buffer = (uint8_t *)realloc(__fifo_buffer, alloc_size);
if (!__fifo_buffer) {
log_e("Realloc buffer size %lu bytes failed!", alloc_size);
log_e("Realloc buffer size %u bytes failed!", alloc_size);
return 0;
}
}
Expand Down

0 comments on commit 154a8cd

Please sign in to comment.