Skip to content

Commit

Permalink
fix warnings (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Philippe Leduc <[email protected]>
  • Loading branch information
leducp and Philippe Leduc committed May 21, 2024
1 parent 99043ce commit 2ff82a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/slave/src/AbstractEmulatedEEPROM.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "kickcat/EEPROM/EEPROM_factory.h"

#include <cstring>
#include <inttypes.h>

namespace kickcat
{
Expand Down Expand Up @@ -128,7 +129,7 @@ namespace kickcat

uint32_t adler_sum = adler32Sum(eeprom_.data(), eeprom_.size() * 2);

printf("Adler sum read %lx, computed %lx\n", adler_checksum_, adler_sum);
printf("Adler sum read %" PRIx32 ", computed %" PRIx32 "\n", adler_checksum_, adler_sum);

if (adler_sum != adler_checksum_)
{
Expand All @@ -139,7 +140,7 @@ namespace kickcat
// debug print:
for(uint32_t i = 0; i < 20; i++)
{
printf("EEPROM %li : %x\n", i, eeprom_[i]);
printf("EEPROM %" PRIu32 " : %x\n", i, eeprom_[i]);
}
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/CoE/OD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ namespace kickcat::CoE
result << *static_cast<int64_t const *>(data);
break;
}
default: {}
}

return result.str();
Expand Down

0 comments on commit 2ff82a9

Please sign in to comment.